Download the PHP package weigot/swoole without Composer

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

基于lumen框架的swoole扩展

公司使用lumen框架做项目较多,所以集合swoole来实现websocket供大家使用

使用文档

环境和依赖

  1. "php": ">=7.0"

  2. "ext-swoole": "*"

  3. "laravel/lumen-framework": ">=5.5"

  4. "illuminate/redis": "*"

使用方法

1.安装依赖包

2.操作命令

3.使用supervisor守护进程

4.nginx配置

5.前端调用demo

数据结构

  1. 消息结构

2.服务端action枚举

名称 编码
服务端操作 100
管理员操作 101
其他用户操作 102
用户详情 200
用户列表 201
新用户上线 202
用户下线 203
发送消息 300

3.信息类型

名称 编码
文本消息 text
图片消息 img
状态信息 state

4.客户端action枚举

名称 编码
发送消息 message
获取自己详情 info
请求在线用户列表 onlineList

All versions of swoole with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-swoole Version *
laravel/lumen-framework Version >=5.5
illuminate/redis Version *
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 weigot/swoole contains the following files

Loading the files please wait ....