2017 © Pedro Peláez
 

library gearman

Gearman (http://www.danga.com/gearman) is a system to farm out work to other machines. It can load balance function calls to lots of machines and allows you to call functions between languages. It can also run all function calls in parallel.

image

mhlavac/gearman

Gearman (http://www.danga.com/gearman) is a system to farm out work to other machines. It can load balance function calls to lots of machines and allows you to call functions between languages. It can also run all function calls in parallel.

  • Wednesday, December 14, 2016
  • by mhlavac
  • Repository
  • 4 Watchers
  • 5 Stars
  • 7,274 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 6 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

Net/Gearman

⚠ This package is abandoned and no longer maintained, please check packagist for alternative Gearman PHP clients ⚠️, (*1)

Build Status, (*2)

PHP library for interfacing with Danga's Gearman. Gearman is a system to farm out work to other machines, dispatching function calls to machines that are better suited to do work, to do work in parallel, to load balance lots of function calls, or to call functions between languages., (*3)

Installation

Add following line to your composer.json ``` json "mhlavac/gearman": "dev", (*4)


You can use following command ``` sh composer.phar require --dev mhlavac/geaman:dev

Examples

Client

``` php <?php, (*5)

$client = new \MHlavac\Gearman\Client(); $client->addServer();, (*6)

$result = $client->doNormal('replace', 'PHP is best programming language!'); $client->doBackground('long_task', 'PHP rules... PHP rules...');, (*7)


### Worker ``` php <?php $function = function($payload) { return str_replace('java', 'php', $payload); }; $worker = new \MHlavac\Gearman\Worker(); $worker->addServer(); $worker->addFunction('replace', $function); $worker->work();

Versioning

This library uses semantic versioning., (*8)

License

This library is under the new BSD license. See the complete license. See the complete license, (*9)

About

I've started working on this because you can't compile PECL gearman extension on windows where I had to use the code. Goal of this project is to make copy of the PECL gearman extension and allow PHP developers to use this implementation as a polyfill for it., (*10)

The Versions

14/12 2016

dev-master

9999999-dev

Gearman (http://www.danga.com/gearman) is a system to farm out work to other machines. It can load balance function calls to lots of machines and allows you to call functions between languages. It can also run all function calls in parallel.

  Sources   Download

New BSD

The Requires

  • php >=5.3.0

 

The Development Requires

05/11 2015

dev-new-tests

dev-new-tests

Gearman (http://www.danga.com/gearman) is a system to farm out work to other machines. It can load balance function calls to lots of machines and allows you to call functions between languages. It can also run all function calls in parallel.

  Sources   Download

New BSD

The Requires

  • php >=5.3.0

 

The Development Requires

02/11 2015

0.1.0

0.1.0.0

Gearman (http://www.danga.com/gearman) is a system to farm out work to other machines. It can load balance function calls to lots of machines and allows you to call functions between languages. It can also run all function calls in parallel.

  Sources   Download

New BSD

The Requires

  • php >=5.3.0

 

The Development Requires