pwt777 / pheanstalk-bundle
The LeezyPheanstalkBundle is a Symfony2 Bundle that provides a command line interface for manage the Beanstalkd workqueue server & a pheanstalk integration.
Installs: 471
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 46
Type:symfony-bundle
Requires
- php: >=7.1.0
- pda/pheanstalk: ~4.0
- psr/log: ~1.0
- symfony/console: ~2.5|~3.0|^4.0|^5.0|^6.0
- symfony/framework-bundle: ~2.5|~3.0|^4.0|^5.0|^6.0
Requires (Dev)
- phpunit/phpunit: ~7.0
This package is auto-updated.
Last update: 2025-03-29 00:50:05 UTC
README
Beanstalkd workqueue clients for Symfony.
The LeezyPheanstalkBundle is a Symfony Bundle that provides a 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
- Configuration
- CLI Usage
- Events
- Custom proxy
- Extra - Beanstalk Manager
- Extra - Proxy to prefix tubes
Usage example
<?php namespace Acme\DemoBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class HomeController extends Controller { public function indexAction() { $pheanstalk = $this->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
$ php composer.phar update $ phpunit
License
This bundle is under the MIT license. See the complete license.
Other
Credits
Author - Thomas Tourlourat
Contributor :
- dontub : Version 4
- Peter Kruithof : Version 3
- Maxwell2022 : Symfony2 Profiler integration