https://github.com/armetiz/LeezyPheanstalkBundle
Bundle for Pheanstalk - A PHP client for beanstalkd queue
https://github.com/armetiz/LeezyPheanstalkBundle
Last synced: 8 months ago
JSON representation
Bundle for Pheanstalk - A PHP client for beanstalkd queue
- Host: GitHub
- URL: https://github.com/armetiz/LeezyPheanstalkBundle
- Owner: armetiz
- License: mit
- Created: 2012-02-09T12:52:59.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T11:32:19.000Z (over 2 years ago)
- Last Synced: 2025-03-28T05:09:14.690Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 271 KB
- Stars: 124
- Watchers: 9
- Forks: 46
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-symfony - LeezyPheanstalkBundle - Bundle for Pheanstalk, PHP client for beanstalkd queue. (Queues)
README
## LeezyPheanstalkBundle
[](http://travis-ci.org/armetiz/LeezyPheanstalkBundle)
[](https://packagist.org/packages/leezy/pheanstalk-bundle)
[](https://scrutinizer-ci.com/g/armetiz/LeezyPheanstalkBundle/)
[Beanstalkd workqueue](http://kr.github.com/beanstalkd/) clients for Symfony.
The LeezyPheanstalkBundle is a Symfony Bundle that provides a [pheanstalk](https://github.com/pda/pheanstalk) integration with the following features:
* Command Line Interface for manage the queues.
* An integration to the Symfony event system.
* An integration to the Symfony profiler system to monitor your beanstalk server.
* An integration to the Symfony logger system.
* A proxy system to customize the command features.
* Auto-wiring: `PheanstalkInterface`
Support Symfony 2, 3 and 4.
Documentation :
- [Installation](https://github.com/armetiz/LeezyPheanstalkBundle/blob/master/src/Resources/doc/1-installation.md)
- [Configuration](https://github.com/armetiz/LeezyPheanstalkBundle/blob/master/src/Resources/doc/2-configuration.md)
- [CLI Usage](https://github.com/armetiz/LeezyPheanstalkBundle/blob/master/src/Resources/doc/3-cli.md)
- [Events](https://github.com/armetiz/LeezyPheanstalkBundle/blob/master/src/Resources/doc/4-events.md)
- [Custom proxy](https://github.com/armetiz/LeezyPheanstalkBundle/blob/master/src/Resources/doc/5-custom-proxy.md)
- [Extra - Beanstalk Manager](https://github.com/armetiz/LeezyPheanstalkBundle/blob/master/src/Resources/doc/6-extra-beanstalk-manager.md)
- [Extra - Proxy to prefix tubes](https://github.com/h4cc/LeezyPheanstalkBundleExtra)
## Usage example
```php
get("leezy.pheanstalk");
// ----------------------------------------
// producer (queues jobs)
$pheanstalk
->useTube('testtube')
->put("job payload goes here\n");
// ----------------------------------------
// worker (performs jobs)
$job = $pheanstalk
->watch('testtube')
->ignore('default')
->reserve();
echo $job->getData();
$pheanstalk->delete($job);
}
}
?>
```
## Testing
```bash
$ php composer.phar update
$ phpunit
```
## License
This bundle is under the MIT license. [See the complete license](https://github.com/armetiz/LeezyPheanstalkBundle/blob/master/LICENSE).
## Other
[Silex integration](https://github.com/sergiors/pheanstalk-service-provider)
## Credits
Author - [Thomas Tourlourat](http://www.armetiz.info)
Contributor :
* [dontub](https://github.com/dontub) : Version 4
* [Peter Kruithof](https://github.com/pkruithof) : Version 3
* [Maxwell2022](https://github.com/Maxwell2022) : Symfony2 Profiler integration