ty-php/rpc

远程过程调用

Maintainers

Details

github.com/ty-php/rpc

Source

Issues

Installs: 17

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:common-plugin

1.0.4 2021-09-24 07:15 UTC

This package is auto-updated.

Last update: 2025-05-25 07:49:23 UTC


README

1、composer 引入包

2、创建RPC实例对象 静态方法调用微服务user: RPC::User()->get(); RPC::User()->request();

创建搜索服务对象: (new RPC('TyPHP\Search'))->request($uri, 'GET', $bo);

3、RPC现有目录介绍 BO:请求微服务方法时,需要传递的参数对象; Exception:统一异常处理; Protocol:请求协议:本地调用、http、rest、tcp等;