Skip to content

ArraysNL/beanstalk

 
 

Repository files navigation

beanstalk

Build Status CoverageStatus License

amphp/beanstalk is an asynchronous client for Beanstalk based on Amp for PHP.

Installation

composer require amphp/beanstalk

Usage

$beanstalk = new Amp\Beanstalk\BeanstalkClient("tcp://127.0.0.1:11300?tube=foobar");

$payload = json_encode([
    "job" => bin2hex(random_bytes(16)),
    "type" => "compress-image"
    "path" => "/path/to/image.png"
]);

$jobId = yield $beanstalk->put($payload);

More documentation

More documentation can be found on https://amphp.org/beanstalk/

About

Asynchronous beanstalk driver.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 97.1%
  • Makefile 2.9%