Download the PHP package mix/jsonrpc-client without Composer

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

JsonRpc Client

Mix PHP 本身提供了基于 TCP 协议的 RPC 服务器开发,这里是 RPC 的客户端,负责与服务器通信。

安装

使用 Composer 安装:

传统调用

在 Mix PHP 的常驻同步模式中使用,也可在 TP/Yii/Laravel 等传统框架中使用。

协程调用

在 Mix PHP 的常驻协程模式中使用,可并行获取多个请求结果,性能是传统框架的同步方式无法比拟的,这种方法使用简单,但是因为是短连接,所以在并发极高时会导致 TIME_WAIT 较高,使用连接池则没有这个问题。

连接池调用

与 Mix PHP 内置的 Database/Redis 池使用方法一至,首先在依赖配置中配置依赖:

注册组件:

增加 IDE 提示:

修改 ApplicationInterface.php 增加注释。

新增一个拨号类:

代码中使用 JsonRpcTcpClient 池:

License

Apache License Version 2.0, http://www.apache.org/licenses/


All versions of jsonrpc-client with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
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 mix/jsonrpc-client contains the following files

Loading the files please wait ....