https://github.com/amphp/beanstalk
Asynchronous Beanstalk Client for PHP.
https://github.com/amphp/beanstalk
amphp async beanstalkd php queue
Last synced: 10 months ago
JSON representation
Asynchronous Beanstalk Client for PHP.
- Host: GitHub
- URL: https://github.com/amphp/beanstalk
- Owner: amphp
- License: mit
- Created: 2016-05-09T20:20:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-10-18T20:04:51.000Z (over 3 years ago)
- Last Synced: 2025-04-09T18:18:51.293Z (10 months ago)
- Topics: amphp, async, beanstalkd, php, queue
- Language: PHP
- Homepage: https://amphp.org/beanstalk/
- Size: 66.4 KB
- Stars: 67
- Watchers: 10
- Forks: 25
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# beanstalk
[](https://travis-ci.org/amphp/beanstalk)
[](https://coveralls.io/github/amphp/beanstalk?branch=master)

`amphp/beanstalk` is an asynchronous [Beanstalk](http://kr.github.io/beanstalkd/) client for PHP based on Amp.
## Installation
```
composer require amphp/beanstalk
```
## Examples
More extensive code examples reside in the [`examples`](./examples) directory.
```php
use('sometube');
$payload = json_encode([
"job" => bin2hex(random_bytes(16)),
"type" => "compress-image",
"path" => "/path/to/image.png"
]);
$jobId = yield $beanstalk->put($payload);
echo "Inserted job id: $jobId\n";
$beanstalk->quit();
});
```
## License
The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.