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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package rpc

simple rpc service for webman plugin

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

安装

使用

服务端服务

新建 service/User.php 服务(目录不存在自行创建)

客户端调用

请求响应结果

请求响应异常结果

在client端发起一个远程伪代码中

client端调用server端 如果server端的代码为本地则是本地调用,如果server端的代码在另外一台机器就需要远程调用(Rpc协议)

  1. 服务端通过插件tinywan/rpc自定义进程实现一个文本text协议服务
  2. 客户端将Server和B方法,以及B方法可能带有的参数序列化
  3. 通过stream_socket_client把序列化的消息发送给服务端
  4. 服务端接收消息并反序列化
  5. 通过反射调用调用服务端的Server类下的B方法
  6. 服务端Server类B方法返回的结果序列化
  7. 将返回的序列化结果通过stream_socket_client发送给客户端
  8. 客户端通过反序列化得到结果

调用编码


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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tinywan/rpc contains the following files

Loading the files please wait ....