2017 © Pedro Peláez
 

library net_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

publero/net_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.

  • Tuesday, February 18, 2014
  • by mhlavac
  • Repository
  • 3 Watchers
  • 13 Stars
  • 64,086 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 55 Forks
  • 14 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Net/Gearman

Build Status, (*1)

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., (*2)

Installation

Add following line to your composer.json require ``` json "publero/net_gearman": "1.0.x-dev", (*3)


You can use following command ``` sh composer.phar require --dev publero/net_geaman:1.0.x

Examples

Client

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

$client = new \Net\Gearman\Client(); $client->addServer();, (*5)

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


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

Versioning

This library uses semantic versioning., (*7)

License

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

[LICENSE](index.md)

About

I've started working on this because you can't compile PECL gearman extension on windows where i need to use this code. Goal of this project is to make copy of the PECL gearman extension and allow PHP developers to use them in same way., (*9)

Bugs and requests

Feel free to report bugs, request a feature or make a pull request. If you want something new in a bundle we would like to know about it. Make sure that you've checked already opened issues as your bug or feature request might already be in issue list., (*10)

The Versions

18/02 2014

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

 

25/03 2013

dev-feature/client

dev-feature/client

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

 

25/03 2013

dev-feature/add-servers

dev-feature/add-servers

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

 

25/03 2013

dev-feature/callbacks

dev-feature/callbacks

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