anglemx / pheanstalk-bundle
Symfony Bundle that integrates the Pheanstalk client for the Beanstalkd workqueue
Installs: 117
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 46
Type:symfony-bundle
Requires
- php: >=7.4
- pda/pheanstalk: ^4
- psr/log: ^1
- symfony/console: ^5
- symfony/framework-bundle: ^5
Requires (Dev)
- phpunit/phpunit: ^8|^9.5
This package is auto-updated.
Last update: 2024-11-10 18:06:42 UTC
README
Symfony Bundle for Pheanstalk – A PHP client for the beanstalkd workqueue.
Forked from armetiz/LeezyPheanstalkBundle.
Uses the Pheanstalk PHP client by Paul Annesley
This package is a Symfony Bundle that provides 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 5.
Documentation :
Usage example
<?php namespace Acme\DemoBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class HomeController extends Controller { public function indexAction() { $pheanstalk = $this->get("angle.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
$ composer update $ phpunit
License
This bundle is under the MIT license. See the complete license.
Credits
Current Maintainers: Angle Consulting
Original Author - Thomas Tourlourat
Original Contributors:
- dontub : Version 4
- Peter Kruithof : Version 3
- Maxwell2022 : Symfony2 Profiler integration