【文件属性】:
文件名称:yii2-wechat:Yii2 微信接口整合
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-09 18:11:47
PHP
关于
Yii2 微信接口整合,基于 扩展
安装
使用 composer,在命令行下使用以下命令:
composer require "yadjet/yii2-wechat:dev-master"
#使用
在您的应用配置文件中包含以下设置:
'wechat' => [
'class' => '\yadjet\wechat\Wechat',
'config' => [
'appId' => 'youAppId',
'appSecret' => 'youAppSecret',
]
],
示例代码
class TestController extends \yii\web\Controller
{
$userService = Yii::$app->wechat->getService('user');
$users =
【文件预览】:
yii2-wechat-master
----src()
--------Wechat.php(3KB)
----README.md(764B)
----.gitignore(20B)
----composer.json(533B)