Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vectorface/gearman
A PHP interface for Danga's Gearman http://pear.php.net/package/Net_Gearman
https://github.com/vectorface/gearman
Last synced: 3 months ago
JSON representation
A PHP interface for Danga's Gearman http://pear.php.net/package/Net_Gearman
- Host: GitHub
- URL: https://github.com/vectorface/gearman
- Owner: Vectorface
- License: bsd-2-clause
- Created: 2022-03-09T20:23:24.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T19:47:32.000Z (5 months ago)
- Last Synced: 2024-10-11T19:23:27.646Z (4 months ago)
- Language: PHP
- Size: 429 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
Net/Gearman
===========This is a fork of [mhlavac/gearman](https://github.com/mhlavac/gearman) which has unfortunately been abandoned.
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.Installation
------------Add following line to your composer.json
``` json
"vectorface/gearman": "^0.2"
```You can use following command
``` sh
composer.phar require --dev vectorface/geaman:^0.2
```Examples
--------### Client
``` php
addServer();$result = $client->doNormal('replace', 'PHP is best programming language!');
$client->doBackground('long_task', 'PHP rules... PHP rules...');
```### Worker
``` php
addServer();
$worker->addFunction('replace', $function);$worker->work();
```Versioning
----------This library uses [semantic versioning](http://semver.org/).
License
-------This library is under the new BSD license. See the complete license. [See the complete license](https://github.com/vectorface/gearman/blob/master/LICENSE)
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.