PHPackages                             zhiyuanfirst/gateway-worker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zhiyuanfirst/gateway-worker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zhiyuanfirst/gateway-worker
===========================

v3.0.12(7y ago)014MITPHP

Since Nov 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zhiyuanfirst/GatewayWorker)[ Packagist](https://packagist.org/packages/zhiyuanfirst/gateway-worker)[ Docs](http://www.workerman.net)[ RSS](/packages/zhiyuanfirst-gateway-worker/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (14)Used By (0)

GatewayWorker
=============

[](#gatewayworker)

GatewayWorker基于[Workerman](https://github.com/walkor/Workerman)开发的一个项目框架，用于快速开发长连接应用，例如app推送服务端、即时IM服务端、游戏服务端、物联网、智能家居等等。

GatewayWorker使用经典的Gateway和Worker进程模型。Gateway进程负责维持客户端连接，并转发客户端的数据给Worker进程处理；Worker进程负责处理实际的业务逻辑，并将结果推送给对应的客户端。Gateway服务和Worker服务可以分开部署在不同的服务器上，实现分布式集群。

GatewayWorker提供非常方便的API，可以全局广播数据、可以向某个群体广播数据、也可以向某个特定客户端推送数据。配合Workerman的定时器，也可以定时推送数据。

快速开始
====

[](#快速开始)

开发者可以从一个简单的demo开始(demo中包含了GatewayWorker内核，以及start\_gateway.php start\_business.php等启动入口文件)
[点击这里下载demo](http://www.workerman.net/download/GatewayWorker.zip)。
demo说明见源码readme。

手册
==

[](#手册)

安装内核
====

[](#安装内核)

只安装GatewayWorker内核文件（不包含start\_gateway.php start\_businessworker.php等启动入口文件）

```
composer require workerman/gateway-worker

```

使用GatewayWorker开发的项目
====================

[](#使用gatewayworker开发的项目)

[tadpole](http://kedou.workerman.net/)
--------------------------------------

[](#tadpole)

[Live demo](http://kedou.workerman.net/)
[Source code](https://github.com/walkor/workerman)
[![workerman todpole](https://camo.githubusercontent.com/de65f69541236da9275b319561d7c11a65f4d941ffc7eb5814f164cc3f8737e7/687474703a2f2f7777772e776f726b65726d616e2e6e65742f696d672f776f726b65726d616e2d746f64706f6c652e706e67)](https://camo.githubusercontent.com/de65f69541236da9275b319561d7c11a65f4d941ffc7eb5814f164cc3f8737e7/687474703a2f2f7777772e776f726b65726d616e2e6e65742f696d672f776f726b65726d616e2d746f64706f6c652e706e67)

[chat room](http://chat.workerman.net/)
---------------------------------------

[](#chat-room)

[Live demo](http://chat.workerman.net/)
[Source code](https://github.com/walkor/workerman-chat)
[![workerman-chat](https://camo.githubusercontent.com/538edc71fe88995245709761d9627297dabe4ce11f1a88efb550700f973266c7/687474703a2f2f7777772e776f726b65726d616e2e6e65742f696d672f776f726b65726d616e2d636861742e706e67)](https://camo.githubusercontent.com/538edc71fe88995245709761d9627297dabe4ce11f1a88efb550700f973266c7/687474703a2f2f7777772e776f726b65726d616e2e6e65742f696d672f776f726b65726d616e2d636861742e706e67)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 93.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~53 days

Recently: every ~26 days

Total

13

Last Release

2821d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39ff0228bb7ea21fe6150b8b30af38befeefddaf7afe2590d78fbfca60abd83a?d=identicon)[zhiyuanfirst](/maintainers/zhiyuanfirst)

---

Top Contributors

[![walkor](https://avatars.githubusercontent.com/u/6073368?v=4)](https://github.com/walkor "walkor (189 commits)")[![agui2200](https://avatars.githubusercontent.com/u/6271220?v=4)](https://github.com/agui2200 "agui2200 (5 commits)")[![zhiyuanfirst](https://avatars.githubusercontent.com/u/2050705?v=4)](https://github.com/zhiyuanfirst "zhiyuanfirst (4 commits)")[![hlxabcd](https://avatars.githubusercontent.com/u/2756343?v=4)](https://github.com/hlxabcd "hlxabcd (1 commits)")[![keppelcao](https://avatars.githubusercontent.com/u/1754641?v=4)](https://github.com/keppelcao "keppelcao (1 commits)")[![wenzhihong2003](https://avatars.githubusercontent.com/u/486365?v=4)](https://github.com/wenzhihong2003 "wenzhihong2003 (1 commits)")[![woann](https://avatars.githubusercontent.com/u/25681022?v=4)](https://github.com/woann "woann (1 commits)")

---

Tags

communicationdistributed

### Embed Badge

![Health badge](/badges/zhiyuanfirst-gateway-worker/health.svg)

```
[![Health](https://phpackages.com/badges/zhiyuanfirst-gateway-worker/health.svg)](https://phpackages.com/packages/zhiyuanfirst-gateway-worker)
```

###  Alternatives

[workerman/gateway-worker

1.0k643.4k74](/packages/workerman-gateway-worker)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[workerman/gateway-worker-for-win

1711.1k2](/packages/workerman-gateway-worker-for-win)[zoon/rialto

Manage Node resources from PHP

12199.4k3](/packages/zoon-rialto)[coldtrick/newsletter

Allows the creation and management of a newsletter to site/group members

153.8k](/packages/coldtrick-newsletter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
