dev-master
9999999-dev服务治理消费者&提供者插件
MIT
The Requires
- php >=5.6.0
The Development Requires
by Crazy
laravel soa tcp 服务治理
Wallogit.com
2017 © Pedro Peláez
服务治理消费者&提供者插件
请拉取最新版本,老版本不可用, (*1)
composer require myservices/rpc
git clone https://github.com/CrazyCodes/Rpc-Plugin.git
配置文件 your_path/config/app.php, (*2)
$client = new \Rpc\RpcProvider(当前项目的根目录地址);
$client->server ();
$production = $client->client ('UserService');
var_dump ($production->getUserInfo (['name' => 111]));
$dev = $client->devClient ('UserService');
var_dump ($dev->getUserInfo (['name' => 111]));
$monitor = new \Rpc\RpcProvider(BASE_PATH); $monitor->monitorStart ();
SwooleTcpServer 只能在CLI中执行,所以我选择使用Supervisor做进程管理, (*3)
周梦康 [https://mengkang.net/], (*4)
Swoole [https://www.swoole.com/], (*5)
服务治理消费者&提供者插件
MIT
laravel soa tcp 服务治理