Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amphp/beanstalk
Asynchronous Beanstalk Client for PHP.
https://github.com/amphp/beanstalk
amphp async beanstalkd php queue
Last synced: 1 day 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 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-18T20:04:51.000Z (about 2 years ago)
- Last Synced: 2024-12-25T12:06:15.753Z (9 days ago)
- Topics: amphp, async, beanstalkd, php, queue
- Language: PHP
- Homepage: https://amphp.org/beanstalk/
- Size: 66.4 KB
- Stars: 65
- Watchers: 11
- Forks: 24
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# beanstalk
[![Build Status](https://img.shields.io/travis/amphp/beanstalk/master.svg?style=flat-square)](https://travis-ci.org/amphp/beanstalk)
[![CoverageStatus](https://img.shields.io/coveralls/amphp/beanstalk/master.svg?style=flat-square)](https://coveralls.io/github/amphp/beanstalk?branch=master)
![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)`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();
});```
## LicenseThe MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.