Download the PHP package xielei/swoole-worker without Composer

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

介绍

SwooleWorker是基于swoole开发的一款分布式长连接开发框架。常驻内存,协程,高性能高并发;分布式部署,横向扩容,使得能支持庞大的连接数;无感知安全重启,无缝升级代码;接口丰富,支持单个发送,分组发送,群发广播等接口。可广泛应用于云计算、物联网(IOT)、车联网、智能家居、网络游戏等领域。

【官方网站】 【开发文档】

架构图

适用对象

SwooleWorker是一个长链接框架,适用于需要长期保持连接的服务

适用于:

不适用于:

安装

接口

接口 参数 返回值
sendToClient string $client, string $message
sendToUid string $uid, string $message, array $without_client_list = []
sendToGroup string $group, string $message, array $without_client_list = []
sendToAll string $message, array $without_client_list = []
isOnline string $client
isUidOnline string $uid bool
getClientListByGroup string $group, string $prev_client = null iterable
getClientCount int
getClientCountByGroup string $group int
getClientList string $prev_client = null iterable
getClientListByUid string $uid, string $prev_client = null iterable
getClientInfo string $client, int $type = 255 array
getUidListByGroup string $group, bool $unique = true iterable
getUidList bool $unique = true iterable
getUidCount float $unique_percent = null int
getGroupList bool $unique = true iterable
getUidCountByGroup string $group int
closeClient string $client, bool $force = false
bindUid string $client, string $uid
unBindUid string $client
joinGroup string $client, string $group
leaveGroup string $client, string $group
unGroup string $group
setSession string $client, array $session
updateSession string $client, array $session
deleteSession string $client
getSession string $client ?array

All versions of swoole-worker with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-swoole Version ^4.6.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 xielei/swoole-worker contains the following files

Loading the files please wait ....