tm / gearman-connection
This package is abandoned and no longer maintained.
No replacement package was suggested.
A simple and clean library to get informations from your gearman jobserver.
1.0.1
2015-09-06 14:49 UTC
Requires
- php: >=5.4.0
- ext-gearman: *
Requires (Dev)
- phpunit/phpunit: @stable
This package is auto-updated.
Last update: 2021-06-11 21:09:30 UTC
README
A simple and clean library to get informations from your gearman jobserver.
Minimal example usage:
require_once __DIR__ . '/../vendor/autoload.php';
use TM\Gearman as Gearman;
$connection = new Gearman\Connection();
$response = $connection->send(new Gearman\Request('status'));
// Do something with the response ...
echo $response;
Customize
If you don't use the default values:
$connection = new Gearman\Connection(
['host' => 'my.gearman.host, 'port' => 1234]
);
And if you don't want an auto-connect by default:
$connection = new Gearman\Connection(
['host' => 'my.gearman.host, 'port' => 1234],
false
);
...
$connection->connect();
...
Contributing
Please refer to CONTRIBUTING.md for information on how to contribute.