Go to file
2019-01-16 17:07:46 +08:00
src tool 2019-01-16 16:49:36 +08:00
tests init 2019-01-04 11:59:05 +08:00
.gitignore init 2019-01-04 11:59:05 +08:00
composer.json composer remove sami 2019-01-16 15:49:07 +08:00
composer.lock composer remove sami 2019-01-16 15:49:07 +08:00
README.md readme 2019-01-16 17:07:46 +08:00

Paidian PHP RPC

该项目使用 composer 来完成加载

执行

composer config repositories.php-json-rpc vcs git@git.int.haowumc.com:composer/php-json-rpc.git
composer require paidian/json-rpc

代码中启用

  • 注册服务
$app->register(\JsonRpc\Providers\LumenServerServiceProvider::class); //rpc server
$app->register(\JsonRpc\Providers\ClientServiceProvider::class); // rpc client

配置

Rpc目录层级 
app
└───Console/
└───Http/
└───Jobs/
└───.....
└───Rpc/
└───────User/
|     |    |  RpcUser.php
└───────Order/
|     |   method.php