BEANSTALK ---- Minimalistic PHP client for beanstalkd.
This library allows you to interface with the beanstalkd work queue and is
built with a minimal featureset still supporting the complete protocol. The
main (and currently only) class can be found at
The class was formerly part of the queue plugin for CakePHP. It has been extracted for higher reusability in other places and frameworks.
Cute is such a project. It uses this library to provide convenient access and tooling around the work queue for PHP.
Beanstalk, a beanstalk PHP client library for the beanstalkd work queue is Copyright (c) 2009-2015 David Persson if not otherwise stated. The code is distributed under the terms of the MIT License. For the full license text see the LICENSE file.
1.0.0, PHP >=5.2.1 1.1.0, PHP >=5.2.1 2.0.0, PHP >=5.4.1
Note: In PHP Versions 5.3.9, 5.3.10 and 5.4.0 the
function exhibits buggy behavior (PHP bug #60817), thus
these versions cannot be used with this library.
The preferred installation method is via composer. You can add the library as a dependency via:
$ composer require davidpersson/beanstalk
The integration tests contained in this library require a running beanstalkd instance. You'll need to start a dedicated instance on port 11301 as follows.
beanstalkd -VV -l 127.0.0.1 -p 11301
Tests for this library are PHPUnit based. To run the tests you'll need to have PHPUnit installed. Following commands will run all the tests.
cd /path/to/beanstalk composer install export TEST_BEANSTALKD_HOST=127.0.0.1 export TEST_BEANSTALKD_PORT=11301 vendor/bin/phpunit tests