Download the PHP package xiongchao/swoole-monitor without Composer

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

master

swoole-monitor-master

功能

安装

PHP版本需求: PHP5.4/PHP5.5/PHP5.6/PHP7.0/PHP7.1,不支持PHP5.3

安装PHPswoole拓展:pecl install swoole

或到swoole官网获取安装帮助

Swoole版本请选用1.8.1以上版本。

实现

使用方法

运行

开启服务:

测试服务

测试服务端接口协议

通信协议为长连接,字节流,包含消息头和消息体两部分

名称 长度 说明
消息头(header) 45 详见消息头定义表
消息体(content) 变长 对于请求参数,是接口的入参,json格式,例如:{"code":"demo","startDate":"20170825"},其中code为接口名,必传。对于响应消息,是返回的数据集合,json格式:例如{"data":[],"errCode":0,"msg":"demo"} ,其中errCode错误码0(成功) -1(失败),data为返回的记录数组。

消息头定义表

名称 长度(字节) 说明
version ( 版本号 ) 1 固定传1(无符号字符,以下相同)
msg_type ( 消息类别 ) 1 1-请求密钥消息,2-返回密钥消息,3-心跳请求消息,4-心跳应答消息,5-推送请求消息,6-推送应答消息,7-上报请求消息
replyCipher(服务端响应包体是否需要加密) 1 0-不需要加密 1-需要加密
compress(包体压缩标识) 1 0-未压缩 1-压缩;先压缩后加密/先解密后解压缩
msg_length ( 消息长度 ) 4 整个消息(包含消息头和消息体)的实际长度 (无符号小端字节序)
headcrc ( 消息长度 ) 4 以上所有字段的crc32校验和 (无符号小端字节序)
uuid ( 请求者ID ) 33 客户端请求ID

All versions of swoole-monitor with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
predis/predis Version 1.0.*
symfony/console Version ^3.4
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 xiongchao/swoole-monitor contains the following files

Loading the files please wait ....