Skip to content

Repository files navigation

📦 一个 PHP 微信开发 SDK,开源 SaaS 平台提供商 微擎 旗下开源产品。

Test StatusLint StatusLatest Stable VersionLatest Unstable VersionTotal DownloadsLicense

环境需求

安装

composer require w7corp/easywechat

使用示例

基本使用(以公众号服务端为例):

<?phpuseEasyWeChat\OfficialAccount\Application;
$config = [
'app_id' => 'wx3cf0f39249eb0exxx',
'secret' => 'f1c242f4f28f735d4687abb469072xxx',
'aes_key' => 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG',
'token' => 'easywechat',
];
$app = newApplication($config);
$server = $app->getServer();
$server->with(fn() => "您好!EasyWeChat!");
$response = $server->serve();

文档和链接

官网 · 讨论 · 更新策略

❤️ 支持我

如果你喜欢我的项目并想支持它,点击这里 ❤️

可爱的贡献者们

License

MIT

About

📦 一个 PHP 微信 SDK

Topics

Resources

Contributing

Security policy

Stars

10.4k stars

Watchers

493 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages