2017 © Pedro Peláez
 

library pheanstalk

PHP client for beanstalkd queue

image

socloz/pheanstalk

PHP client for beanstalkd queue

  • Wednesday, October 24, 2012
  • by noisebynorthwest
  • Repository
  • 10 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 230 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Pheanstalk

Pheanstalk is a pure PHP 5.2+ client for the beanstalkd workqueue. It has been actively developed, and used in production by many, since late 2008., (*1)

Created by Paul Annesley, Pheanstalk is rigorously unit tested and written using encapsulated, maintainable object oriented design. Community feedback, bug reports and patches has led to a stable 1.0.0 release in 2010., (*2)

beanstalkd up to the latest version 1.4 is supported. All commands and responses specified in the [protocol documentation][3] for beanstalkd 1.3 are implemented., (*3)

Usage Example

useTube('testtube')
  ->put("job payload goes here\n");

// ----------------------------------------
// worker (performs jobs)

$job = $pheanstalk
  ->watch('testtube')
  ->ignore('default')
  ->reserve();

echo $job->getData();

$pheanstalk->delete($job);

?>

Running the tests

# ensure you have simpletest
$ git submodule init
$ git submodule update


$ ./tests/runtests.php
All Tests
OK
Test cases run: 4/4, Passes: 103, Failures: 0, Exceptions: 0


# extra tests relying on a beanstalkd on 127.0.0.1:11300
$ ./tests/runtests.php --with-server
All Tests
OK
Test cases run: 7/7, Passes: 198, Failures: 0, Exceptions: 0


$ ./tests/runtests.php --help

CLI test runner.

Available options:

  --with-server      Includes tests which connect to a beanstalkd server
  --testfile <path>  Only run the specified test file.
  --help             This documentation.

Contributors

Licence

© Paul Annesley, (*4)

Released under the The MIT License, (*5)

The Versions

24/10 2012

dev-socloz-master

dev-socloz-master https://github.com/SoCloz/pheanstalk

PHP client for beanstalkd queue

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

beanstalkd

24/10 2012

dev-master

9999999-dev https://github.com/pda/pheanstalk

PHP client for beanstalkd queue

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

beanstalkd