Download the PHP package tinywan/rpc without Composer
On this page you can find all versions of the php package tinywan/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 rpc
simple rpc service for webman plugin
安装
使用
服务端服务
新建 service/User.php
服务(目录不存在自行创建)
客户端调用
请求响应结果
请求响应异常结果
在client端发起一个远程伪代码中
client端调用server端 如果server端的代码为本地则是本地调用,如果server端的代码在另外一台机器就需要远程调用(Rpc协议)
- 服务端通过插件tinywan/rpc自定义进程实现一个文本text协议服务
- 客户端将Server和B方法,以及B方法可能带有的参数序列化
- 通过stream_socket_client把序列化的消息发送给服务端
- 服务端接收消息并反序列化
- 通过反射调用调用服务端的Server类下的B方法
- 服务端Server类B方法返回的结果序列化
- 将返回的序列化结果通过stream_socket_client发送给客户端
- 客户端通过反序列化得到结果
调用编码
All versions of rpc with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
workerman/webman-framework Version ^1.5||^2.0
ext-json Version *
tinywan/exception-handler Version ^1.5
workerman/webman-framework Version ^1.5||^2.0
ext-json Version *
tinywan/exception-handler Version ^1.5
The package tinywan/rpc contains the following files
Loading the files please wait ....