PHPackages                             commune/chatbot-wechat - 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. [API Development](/categories/api)
4. /
5. commune/chatbot-wechat

ActiveLibrary[API Development](/categories/api)

commune/chatbot-wechat
======================

commune chatbot platform adapter for wechat

10PHP

Since Jul 11Pushed 6y agoCompare

[ Source](https://github.com/thirdgerb/chatbot-wechat)[ Packagist](https://packagist.org/packages/commune/chatbot-wechat)[ RSS](/packages/commune-chatbot-wechat/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

开发和测试中... 尚未正式发布

[commune/chatbot](https://github.com/thirdgerb/chatbot) 项目的微信 adapter.

具体使用可参考 [commune/chatbot-studio](https://github.com/thirdgerb/chatbot-studio)

web服务基于 swoole, wechat 功能使用了 [easywechat项目](https://www.easywechat.com/docs) . 因为开发时间有限, 包括数据读写, 都用比较粗糙的方式实现.

使用方法:
-----

[](#使用方法)

### 在laravel 中安装

[](#在laravel-中安装)

在 laravel 项目中, 运行加载包.

```
composer require commune/chatbot-wechat:dev-develop

```

在 laravel 的 config/app.php 中, 为 providers 添加

```
   \App\Providers\CommuneStudioServiceProvider::class,
   \Commune\Chatbot\Wechat\CommuneWechatServiceProvider::class,

```

### 加载配置文件

[](#加载配置文件)

```
php artisan vendor:publish

```

### 安装数据库

[](#安装数据库)

```
php artisan migrate

```

### 确认依赖

[](#确认依赖)

- swoole ~4.8
- laravel ~7.2
- mysql
- redis

### 运行

[](#运行)

命令行测试

```
php artisan commune:tinker

```

tcp 端口测试

```
php artisan commune:tcp

```

微信服务端测试

```
php artisan commune:wechat-server

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

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://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 (24 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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