Download the PHP package larva/think-wechat without Composer
On this page you can find all versions of the php package larva/think-wechat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package think-wechat
think-wechat
微信 SDK For ThinkPHP 6.0 基于overtrue/wechat
框架要求
ThinkPHP6.0(中间件要求支持 ThinkPH6.0+)
安装
配置
-
修改配置文件 修改项目根目录下 config/wechat.php 中对应的参数
- 每个模块基本都支持多账号,默认为 default。
使用
接受普通消息
新建一个 Controller,我这边用的是 Wechat
获得 SDK 实例 使用 Facade
以上均支持传入自定义账号:例如
更多 SDK 的具体使用请参考:https://easywechat.com
中间件参数说明
由于ThinkPHP中间件只支持一个参数,所以以:做分割
支持传入account账号别名以及scope类型
若不传入account,会使用default账号
若不传入scope,会使用配置文件中的oauth.scope
支持一下两种方式
default:snsapi_base snsapi_base
参考项目
All versions of think-wechat with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
ext-json Version *
topthink/framework Version ^6.0.0
overtrue/wechat Version ^5.5
ext-json Version *
topthink/framework Version ^6.0.0
overtrue/wechat Version ^5.5
The package larva/think-wechat contains the following files
Loading the files please wait ....