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

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

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