Developed with love by KnpLabs Hire us for your project!
140

LeezyPheanstalkBundle

by armetiz

Bundle for Pheanstalk - A PHP client for beanstalkd queue

LeezyPheanstalkBundle

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 :
- 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

Silex integration

Credits

Author - Thomas Tourlourat

Contributor :
* dontub : Version 4
* Peter Kruithof : Version 3
* Maxwell2022 : Symfony2 Profiler integration

Copyright (c) 2013 Thomas Tourlourat

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
  • chore: update docs
    By armetiz, 1 year ago
  • add dontub to contributors
    By web-flow, 1 year ago
  • Merge pull request #78 from armetiz/pheanstalk-v4
    By web-flow, 1 year ago
  • avoid 4.3 EventDispatcher deprecation message
    By armetiz, 1 year ago
  • fix travis configuration
    By armetiz, 1 year ago
  • fix travis configuration
    By armetiz, 1 year ago
  • fix travis configuration
    By armetiz, 1 year ago
  • fix container configuration
    By armetiz, 1 year ago
  • fix tests
    By armetiz, 1 year ago
  • get pheanstalk name from locator
    By armetiz, 1 year ago
  • include @dontub proposition
    By armetiz, 1 year ago
  • fix some tests
    By armetiz, 1 year ago
  • pheanstalk v4 migration
    By armetiz, 1 year ago
  • WIP - Pheanstalk 4 support
    By armetiz, 1 year ago
  • chore: alias could be null
    By armetiz, 1 year ago
  • chore: configure auto-wiring for PheanstalkInterface
    By armetiz, 1 year ago
  • add profiler part
    By web-flow, 1 year ago
  • Merge pull request #75 from sh41/master
    By web-flow, 1 year ago
  • Avoid memory exhaustion in Travis
    By web-flow, 1 year ago
  • Update to correct notation
    By web-flow, 1 year ago
  • Update default to correct notation
    By web-flow, 1 year ago
  • prepare 3.3.0
    By armetiz, 2 years ago
  • Merge pull request #74 from nmarniesse/evol_symfony4
    By web-flow, 2 years ago
  • add symfony4 compatibility
    By Nicolas Marniesse, 2 years ago
  • Merge pull request #73 from new-inventor/visibility_fix
    By web-flow, 2 years ago
  • added "public=true" options for commands and services
    By George Ionov, 2 years ago
  • add reset() to Data Collector
    By armetiz, 2 years ago
  • Use composer require
    By web-flow, 3 years ago
  • fix images : travis-ci & scrutinizer-ci
    By web-flow, 3 years ago
  • Do not try to test HHVM.
    By web-flow, 3 years ago