PHP wrapper to Gearman https://pecl.php.net/package/gearman

Rasmus Lerdorf a52052cdd7 Merge pull request #25 from devinodaniel/fix-test-gearman_client_021 2 months ago
examples 287811c5fa Update reverse_client.php example to use doNormal() 8 years ago
tests 510fdd3dba Update gearman_client_021.phpt 2 months ago
.gitignore a1a7b8a3df adding to the .gitignore 8 years ago
.travis.yml 0037b4694e add PHP 7.1 support for Travis CI 7 years ago
CREDITS 79df470fb8 Re-ran const_gen.sh to get libgearman v0.6. I had a bogus editor setting 15 years ago
ChangeLog 8b46ac6dbf Release 2.1.2 2 months ago
LICENSE f225b9eea5 Added a few missing files. Started to add all the arginfo stuff. I think 15 years ago
README 7e4b096bc7 Release 2.1.1 2 months ago
TODO a256a02bd6 Re-named class/methods to conform to the php coding standards, modified 15 years ago
config.m4 fc1b4e49b4 setting up separate files for gearman job class 7 years ago
const_gen.sh 2a12523919 - Fixed build issue with 5.1.x 14 years ago
gearman.stub.php 91a37ac07b Fix return types based on not documenting ZPP failures 8 months ago
gearman_arginfo.h deef931a30 Param to skip exception handling setup in addServer/addServers in GeamanWorker class 2 years ago
package.xml 95146997ba Fix version and date for pecl release 2 months ago
php-gearman.ini b35e797a40 Fixed PECL bug #60877 (no way to set client_id for a GearmanWorker) 12 years ago
php_gearman.c b5ef0161fd Fix return types in proto comments 8 months ago
php_gearman.h 8b46ac6dbf Release 2.1.2 2 months ago
php_gearman_client.c 91a37ac07b Fix return types based on not documenting ZPP failures 8 months ago
php_gearman_client.h 9dc5082e63 Fix SegFault on serialization of objects A slight refactor of PR #2 - thanks @SwenVanZanten 3 years ago
php_gearman_job.c 91a37ac07b Fix return types based on not documenting ZPP failures 8 months ago
php_gearman_job.h e57ee3139e Reworked serialization bug fix 3 years ago
php_gearman_task.c 91a37ac07b Fix return types based on not documenting ZPP failures 8 months ago
php_gearman_task.h 9dc5082e63 Fix SegFault on serialization of objects A slight refactor of PR #2 - thanks @SwenVanZanten 3 years ago
php_gearman_worker.c 91a37ac07b Fix return types based on not documenting ZPP failures 8 months ago
php_gearman_worker.h e57ee3139e Reworked serialization bug fix 3 years ago
test_client.php 77134cc5b4 cleaning up (some) of test_client.php code 7 years ago
test_worker.php 2a12523919 - Fixed build issue with 5.1.x 14 years ago

README

The Gearman PHP Extension provides a wrapper to libgearman. This
gives the user the ability to write fully featured Gearman clients
and workers in PHP, allowing them to quickly develop distributed
applications.

For more information about Gearman, see: http://www.gearman.org/

Requirements
* For the 0.8.* versions, libgearman v0.14 or greater
* For the 1.0.* versions, libgearman v0.21 or greater
* For the 1.1.* versions, libgearman v1.1.0 or greater
* For the 2.0.* versions, testing is done against libgearman v1.1.8 and PHP 7.0-7.4
* For the 2.1.* versions, testing is done against libgearman v1.1.18 and PHP 7.0-8.3

The Gearman PHP Extension requires the Gearman C server and library package
to be installed. You can download the latest from:

https://github.com/gearman/gearmand/releases

See the README file in that package for installation instructions. Once
it is installed you can compile the Gearman PHP Extension. You'll need
to make sure you have the PHP development packages installed first
(if you have 'phpize' command you’re all set). You'll also probably
want the PHP command line interface installed as well (usually named
php-cli). After extracting the Gearman PHP tarball, just run:

phpize
./configure
make
make install

You then need to make PHP aware of the new extension by adding the
following line to your php.ini:

extension="gearman.so"

You can then test if the module is configured correctly with the
PHP cli:

php --info | grep gearman

To run a simple example

cd examples

1. Start the gearmand server in a separate terminal:

gearmand


2. In another terminal, change to this source directory and run:

php examples/reverse_worker.php


3. In another terminal, change to this source directory and run:

php examples/reverse_client.php


You should see some output from both the reverse client and worker
scripts about the status and then a final result.


Have fun!

http://pecl.php.net/package/gearman