enlightened-dc/gearman-connection
最新稳定版本:1.0.1
Composer 安装命令:
composer require enlightened-dc/gearman-connection
包简介
A simple and clean library to get informations from your gearman jobserver.
README 文档
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.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-10