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 3d 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 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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://www.gravatar.com/avatar/07cd152acb87d750d5de1037350526f02d61d95417702d6f5105279df209ca36?d=identicon)[thirdgerb](/maintainers/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/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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