leezy/pheanstalk-bundle

The LeezyPheanstalkBundle is a Symfony Bundle that provides a command line interface for manage the Beanstalkd workqueue server & a pheanstalk integration.

Maintainers

👁 armetiz

Package info

github.com/armetiz/LeezyPheanstalkBundle

Type:symfony-bundle

pkg:composer/leezy/pheanstalk-bundle

Statistics

Installs: 1 833 470

Dependents: 11

Suggesters: 1

Stars: 124

Open Issues: 2

5.0.0 2022-03-08 08:08 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 972a5c154e52fd04ec70c13519ddb73dec819700

symfonybundlemessagingbeanstalkdasynchronouspheanstalkqueueing


README

👁 Build Status
👁 Packagist
👁 Scrutinizer Quality Score

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 :

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

Silex integration

Credits

Author - Thomas Tourlourat

Contributor :