Download the PHP package xiaolin/swoole-rpc without Composer
On this page you can find all versions of the php package xiaolin/swoole-rpc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package swoole-rpc
Swoole RPC Library
安装
composer require xiaolin/swoole-rpc
使用
服务端示例代码
$server = new Server();
$server->setHandler('test', TestHandler::getInstance())->serve('0.0.0.0', '11520', [
'pid_file' => './socket.pid',
'daemonize' => false,
'max_request' => 500, // 每个worker进程最大处理请求次数
'open_eof_check' => true,
'package_eof' => "\r\n",
]);
客户端示例代码
$result = TestClient::getInstance()->test();
All versions of swoole-rpc with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
ext-swoole Version ^2.0
phalcon/dd Version ^1.1
xiaolin/support-str Version ^0.0.1
ext-swoole Version ^2.0
phalcon/dd Version ^1.1
xiaolin/support-str Version ^0.0.1
The package xiaolin/swoole-rpc contains the following files
Loading the files please wait ....