Skip to content

Bundle for Pheanstalk - A PHP client for beanstalkd queue

License

Notifications You must be signed in to change notification settings

Maxwell2022/LeezyPheanstalkBundle

 
 

Repository files navigation

LeezyPheanstalkBundle

project status Build Status

Beanstalkd workqueue clients for Symfony2.

The LeezyPheanstalkBundle is a Symfony2 Bundle that provides a pheanstalk integration with the following features:

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.

Credits

Author - Thomas Tourlourat

Contributor :

Bitdeli Badge

About

Bundle for Pheanstalk - A PHP client for beanstalkd queue

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%