Download the PHP package andphp/jsonrpc without Composer

On this page you can find all versions of the php package andphp/jsonrpc. 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 jsonrpc

hyperf rpc与go的 josnrpc库通讯

兼容hyperf框架的之间jsonrpc通讯 以及与golang的jsonrpc库通讯

若rpc服务端为golang

config/autoload/servers.php配置文件修改

  1. 协议配置项 protocol为jsonrpc-bl
  2. 分包规则package_eof 为 \n

若hyperf框架服务端 需兼容 hypef框架rpc客户端和golang的rpc客户端请求

需修改服务端config/autoload/server.php配置文件修改项

  1. 分包规则package_eof修改为 \n
  2. callback数组修改为[ \Hyperf\Server\Event::ON_RECEIVE => [\Bl\BlTcpServer::class, 'onReceive'], ]
  3. 设置服务提供者的@RpcService的注解protocol属性为jsonrpc-bl

凡是代码需要使用jsonrpc-bl通讯协议的

  1. 需新增事件 新增文件RpcProtocolListener.php到app/Listener文件夹
  2. 通过配置文件注册监听器,修改config/autoload/listeners.php 配置文件

All versions of jsonrpc with dependencies

PHP Build Version
Package Version
Requires hyperf/rpc Version ~2.2.0
hyperf/json-rpc Version ~2.2.0
hyperf/rpc-server Version ~2.2.0
hyperf/rpc-client Version ~2.2.0
php Version >=7.3
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 andphp/jsonrpc contains the following files

Loading the files please wait ....