PHPackages                             commune/chatbot-stdio - 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. commune/chatbot-stdio

ActiveProject[Framework](/categories/framework)

commune/chatbot-stdio
=====================

studio for commune/chatbot based on Laravel Framework.

1102PHPCI failing

Since Jul 14Pushed 6y agoCompare

[ Source](https://github.com/thirdgerb/chatbot-studio)[ Packagist](https://packagist.org/packages/commune/chatbot-stdio)[ RSS](/packages/commune-chatbot-stdio/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

deprecated
==========

[](#deprecated)

本项目停止开发, studio 框架改用和 swoole 协程结合比较好的 [hyperf](https://github.com/hyperf-cloud/hyperf)

替代项目是[commune/studio-hyperf](https://github.com/thirdgerb/studio-hyperf)

---

多轮对话机器人框架 commune/chatbot 项目在 laravel 中搭建的 studio.

查看 Demo 请搜索微信公众号 CommuneChatbot

[![wechat-qrcode](/docs/img/commune-qrcode.bmp)](/docs/img/commune-qrcode.bmp)

交流qq群: 907985715

### 确认依赖

[](#确认依赖)

- swoole 4.x
- mysql
- redis

### 安装

[](#安装)

下载源码 (没有发布版本)

```
git clone https://github.com/thirdgerb/chatbot-studio.git

```

安装依赖

```
composer install

```

检查 .env 文件

- 检查数据库配置
- 检查redis配置

.env 文件需要检查本项目的参数:

```
// 是否debug模式
COMMUNE_DEBUG=true
// 是否开启 nlu. 默认关闭
COMMUNE_NLU=false
// 超级管理员id
COMMUNE_SUPERVISORS=testUserId
// rasa 服务的端口
RASA_SERVER=localhost:5005
RASA_JWT=null

// 微信服务配置.
WECHAT_SERVER_IP=127.0.0.1
WECHAT_SERVER_PORT=80
WECHAT_APP_ID=your-app-id
WECHAT_SECRET=your-app-secret
WECHAT_TOKEN=your-token
WECHAT_AES_KEY=

```

初始化数据库

```
php ./artisan migrate

```

### 运行

[](#运行)

目前可以运行的指令:

```
// 运行命令行
php ./artisan commune:tinker

// 运行tcp服务, 可以用 telnet 连接对话机器人
php ./artisan commune:tcp

// 运行 微信公众号的服务 (测试中)
php ./artisan commune:wechat-server

```

使用rasa
------

[](#使用rasa)

demo 目前使用 rasa 做 nlu 服务

`root/commune/rasa` 目录提供了 rasa 的代码. 不过没有 models 和includes, 需要自己复制.

训练:

```
cd root/commune/rasa
sh train.sh

```

运行web服务:

```
cd root/commune/rasa
rasa run --enable-api -m models/model-file-name

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12014319?v=4)[ZhuMing](/maintainers/thirdgerb)[@thirdgerb](https://github.com/thirdgerb)

---

Top Contributors

[![thirdgerb](https://avatars.githubusercontent.com/u/12014319?v=4)](https://github.com/thirdgerb "thirdgerb (35 commits)")

### Embed Badge

![Health badge](/badges/commune-chatbot-stdio/health.svg)

```
[![Health](https://phpackages.com/badges/commune-chatbot-stdio/health.svg)](https://phpackages.com/packages/commune-chatbot-stdio)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M840](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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