think wechat
2.0.0
Enterprise WeChat SDK for ThinkPHP5, based on pithyone/wechat
Theoretically supports all versions of ThinkPHP 5.1.x
composer require pithyone/think-wechat
Copy vendor/pithyone/think-wechat/src/config.php
to the application configuration directory, and then rename it to wework.php
provider.php
return [
// ...
' wework ' => think WeWork::class,
];
Take obtaining access_token as an example:
app ( ' wework ' )-> get ( ' token ' )-> get ();
When using other applications, just change the default settings. Suppose there is a test application called test
app ( ' wework ' , [ ' test ' ], true )-> get ( ' token ' )-> get ();
For more usage, please refer to: https://pithyone.github.io/wechat/
MIT