yadjet / yii2-wechat
overtrue Wechat SDK for Yii2
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=5.4
- overtrue/wechat: 2.*
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-01-10 20:42:34 UTC
README
Yii2 微信接口整合,基于 overtrue/wechat 扩展
安装
使用 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 = $userService->get(); var_dump($users); }
Wechat SDK 详细的使用方法请参考 overtrue/wechat 使用手册