ifornew/wechat
Composer 安装命令:
composer require ifornew/wechat
包简介
微信SDK
README 文档
README
📦 一个 PHP 微信开发 SDK,翻译至:w7corp/easywechat:^6.7,并支持 PHP 7.x
环境需求
- PHP >= 7.4
- Composer >= 2.0
安装
composer require ifornew/wechat
使用示例
基本使用(以公众号服务端为例):
<?php
use Ifornew\WeChat\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();
文档和链接
:heart: 支持我
如果你喜欢我的项目并想支持它,点击这里 :heart:
由 JetBrains 赞助
非常感谢 Jetbrains 为我提供的 IDE 开源许可,让我完成此项目和其他开源项目上的开发工作。
License
MIT
统计信息
- 总下载量: 102
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-14