PHPackages                             gemini/chat-api - 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. [Framework](/categories/framework)
4. /
5. gemini/chat-api

ActiveProject[Framework](/categories/framework)

gemini/chat-api
===============

A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.

v1.0.1(4y ago)29215[1 PRs](https://github.com/Gemini-D/chat-api/pulls)MITPHPPHP &gt;=8.0

Since Sep 20Pushed 3y agoCompare

[ Source](https://github.com/Gemini-D/chat-api)[ Packagist](https://packagist.org/packages/gemini/chat-api)[ RSS](/packages/gemini-chat-api/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (36)Versions (5)Used By (0)

分布式聊天系统
=======

[](#分布式聊天系统)

本系统支持 NSQ 和 AMQP 两种消费协议，可以通过修改 `CONSUMER_ENGINE` 环境变量进行切换，推荐使用 `AMQP`。

连接
--

[](#连接)

```
ws://127.0.0.1:9501/?token=xxx

```

协议
--

[](#协议)

查看所有用户列表

```
{"protocal":"user.list","data":"Hello World"}

```

向对方用户发送消息

```
{"protocal":"send.message","data":{"id":2,"message":"Hello World."}}

```

测试
--

[](#测试)

启动两个服务，分别使用端口 9501 和 9502

让客户端A使用以下连接，连接 9501 端口

```
ws://127.0.0.1:9501/?token=1

```

让客户端B使用以下连接，连接 9502 端口

```
ws://127.0.0.1:9502/?token=2

```

使用客户端 A 发送协议

```
{"protocal":"send.message","data":{"id":2,"message":"Hello World."}}
```

客户端 B 即可收到消息

###  Health Score

29

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.7% 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 ~50 days

Total

2

Last Release

1597d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44228082?v=4)[Hyperf Community](/maintainers/hyperf)[@hyperf](https://github.com/hyperf)

![](https://www.gravatar.com/avatar/e427ffcc825cdaf0253c4f8c212a6d6da66dce645f7a49316fbe63d18f7ca5e9?d=identicon)[limingxinleo](/maintainers/limingxinleo)

---

Top Contributors

[![limingxinleo](https://avatars.githubusercontent.com/u/16648551?v=4)](https://github.com/limingxinleo "limingxinleo (211 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![missxiaolin](https://avatars.githubusercontent.com/u/26253292?v=4)](https://github.com/missxiaolin "missxiaolin (2 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

phpmiddlewareframeworkswoolehyperfMicroservice

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gemini-chat-api/health.svg)

```
[![Health](https://phpackages.com/badges/gemini-chat-api/health.svg)](https://phpackages.com/packages/gemini-chat-api)
```

###  Alternatives

[hyperf/swow-skeleton

A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.

494.5k](/packages/hyperf-swow-skeleton)[mineadmin/mineadmin

Quickly build a background management system for web applications

1.2k2.0k](/packages/mineadmin-mineadmin)

PHPackages © 2026

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