gries/rcon
最新稳定版本:0.0.3
Composer 安装命令:
composer require gries/rcon
包简介
PHP RCON Client
关键字:
README 文档
README
This is a simple RCON-Client for php.
Installation
RCON can be installed via. Composer:
composer require "gries/rcon"
Usage
use gries\Rcon\MessengerFactory; use gries\Rcon\Messenger; require_once __DIR__.'/vendor/autoload.php'; // setup the messenger $messenger = MessengerFactory::create('example.com', 25575, 'mypass'); // send a simple message $response = $messenger->send('list'); echo $response; // a,b,c // send a message and parse the command via. a callable $response = $messenger->send('list', function($arg) { return explode(',', $arg); }); print_r($response); // ['a', 'b', 'c']
Running the tests
vendor/bin/phpspec run
Contribute!
Feel free to give me feedback/feature-request/bug-reports via. github issues. Or just send me a pull-request :)
Author
License
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
统计信息
- 总下载量: 739
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-12