From 61821597ffc6698494463b8cbff30d76eab528c3 Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Wed, 16 Jan 2019 17:07:46 +0800 Subject: [PATCH] readme --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e9441fb --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# Paidian PHP RPC + + +> 该项目使用 composer 来完成加载 + + + +执行 +```bash +composer config repositories.php-json-rpc vcs git@git.int.haowumc.com:composer/php-json-rpc.git +composer require paidian/json-rpc +``` + + +### 代码中启用 + +* 注册服务 + +```php +$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 +```