# [EasyWeChat](https://easywechat.com)
📦 一个 PHP 微信开发 SDK,开源 SaaS 平台提供商 [微擎](https://www.w7.cc/) 旗下开源产品。
[](https://github.com/w7corp/easywechat/actions)
[](https://github.com/w7corp/easywechat/actions)
[](https://packagist.org/packages/w7corp/easywechat)
[](https://packagist.org/packages/w7corp/easywechat)
[](https://packagist.org/packages/w7corp/easywechat)
[](https://packagist.org/packages/w7corp/easywechat)
## 环境需求
- PHP >= 8.0.2
- [Composer](https://getcomposer.org/) >= 2.0
## 安装
```bash
composer require w7corp/easywechat
```
## 使用示例
基本使用(以公众号服务端为例):
```php
<?php
use EasyWeChat\OfficialAccount\Application;
$config = [
'app_id' => 'wx3cf0f39249eb0exxx',
'secret' => 'f1c242f4f28f735d4687abb469072xxx',
'aes_key' => 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG',
'token' => 'easywechat',
];
$app = new Application($config);
$server = $app->getServer();
$server->with(fn() => "您好!EasyWeChat!");
$response = $server->serve();
```
## 文档和链接
[官网](https://easywechat.com) · [讨论](https://github.com/w7corp/easywechat/discussions) · [更新策略](https://github.com/w7corp/easywechat/security/policy)
## :heart: 支持我
如果你喜欢我的项目并想支持它,[点击这里 :heart:](https://github.com/sponsors/overtrue)
## 可爱的贡献者们
<a href="https://github.com/w7corp/easywechat/graphs/contributors"><img src="https://opencollective.com/wechat/contributors.svg?width=890" /></a>
## License
MIT
扩展中心
立即提交欢迎提交你的ThinkPHP扩展
推荐扩展
-
topthink/think-ai
1年前
-
topthink/think-api
1年前
-
topthink/think-dumper
Dumper extend for thinkphp
11个月前 -
topthink/think-validate
think validate
1年前 -
yzh52521/think-mailer
A powerful and beautiful php mailer for All of ThinkPHP and Other PHP Frameworks based Symfony mailer
2年前