Build a WeChat Official Account bot in PHP that automatically responds to user messages with custom replies.
Integrate WeChat Pay into a PHP e-commerce site using EasyWeChat's payment API wrapper.
Create a WeChat Mini Program backend in PHP that handles user authentication and API calls.
| w7corp/easywechat | php-fig/log | anankke/sspanel-uim | |
|---|---|---|---|
| Stars | 10,377 | 10,440 | 10,304 |
| Language | PHP | PHP | PHP |
| Setup difficulty | moderate | easy | hard |
| Complexity | 3/5 | 1/5 | 4/5 |
| Audience | developer | developer | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Requires PHP 8.4+, a WeChat developer account, and credentials (app ID, secret, token) from the WeChat developer console.
EasyWeChat is a PHP library for building applications on WeChat (also known as Weixin), the dominant messaging and social platform in China operated by Tencent. WeChat offers a developer platform with multiple product types: Official Accounts (which function like subscription channels or business pages), Mini Programs (lightweight apps that run inside WeChat), and payment and open-platform APIs. EasyWeChat wraps these APIs into a PHP-friendly interface so developers do not have to deal with raw HTTP requests, signature verification, and XML parsing themselves. The library is installed through Composer, PHP's standard package manager, using a single command. It requires PHP version 8.4 or newer. Once installed, you configure it with credentials from the WeChat developer console (app ID, secret key, and a token for verifying messages), then use the resulting object to handle incoming messages from users or call outbound WeChat APIs. The code example in the README shows a basic Official Account server setup that responds to any user message with a greeting. The full documentation, including guides for each WeChat product type, is available in Chinese and English at easywechat.com. The project is maintained by w7corp, the open-source arm of a Chinese SaaS platform called Weijin (微擎). It is released under the MIT license and accepts community contributions through GitHub.
EasyWeChat is a PHP library that wraps WeChat's developer APIs, Official Accounts, Mini Programs, and payments, into a simple, PHP-friendly interface so you skip the raw HTTP and signature juggling.
Mainly PHP. The stack also includes PHP, Composer.
Use, copy, modify, and distribute freely for any purpose, including commercial projects, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.