191
GitHub - overtrue/wechat: It is probably the best SDK in the world for developin...
source link: https://github.com/overtrue/wechat
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
EasyWeChat
一个 PHP 微信开发 SDK,开源 SaaS 平台提供商 微擎 旗下开源产品。
- PHP >= 8.0.2
- Composer >= 2.0
composer require w7corp/easywechat
基本使用(以公众号服务端为例):
<?php
use EasyWeChat\OfficialAccount\Application;
$config = [
'app_id' => 'wx3cf0f39249eb0exxx',
'secret' => 'f1c242f4f28f735d4687abb469072xxx',
'aes_key' => 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG',
'token' => 'easywechat',
];
$app = new Application($config);
$app->getServer()->with(fn() => "您好!EasyWeChat!");
$response = $server->serve();
文档和链接
支持我
如果你喜欢我的项目并想支持它,
由 JetBrains 赞助
非常感谢 Jetbrains 为我提供的 IDE 开源许可,让我完成此项目和其他开源项目上的开发工作。
可爱的贡献者们
License
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK