Download the PHP package limingxinleo/swoft-easywechat without Composer
On this page you can find all versions of the php package limingxinleo/swoft-easywechat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download limingxinleo/swoft-easywechat
More information about limingxinleo/swoft-easywechat
Files in limingxinleo/swoft-easywechat
Download limingxinleo/swoft-easywechat
More information about limingxinleo/swoft-easywechat
Files in limingxinleo/swoft-easywechat
Please rate this library. Is it a good library?
Informations about the package swoft-easywechat
Swoft EasyWeChat
本仓库不再维护,请使用者直接使用 overtrue/wechat
。
并且配置composer.json。
"repositories": {
"guzzle": {
"type": "git",
"url": "https://github.com/limingxinleo/guzzle.git"
}
}
上述仓库,增加SwolleCoroutineHandler,当扩展跑在swoole协程下时,会自动使用该Handler处理请求。 当使用wechat server功能时,只需要自己初始化request即可。
/** @var \EasyWeChat\OfficialAccount\Application $app */
$app = OfficialAccount::instance()->app;
$get = $request->getSwooleRequest()->get ?? [];
$post = $request->getSwooleRequest()->post ?? [];
$attr = [];
$cookies = $request->getSwooleRequest()->cookie ?? [];
$files = $request->getSwooleRequest()->files ?? [];
$server = $request->getSwooleRequest()->server ?? [];
$raw = $request->getSwooleRequest()->rawContent();
// 初始化 Request
$app->request->initialize($get, $post, $attr, $cookies, $files, $server, $raw);
用法与EasyWeChat没有区别,请实现自己的基于协程的单例。
All versions of swoft-easywechat with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
swoft/framework Version ^1.0.24
swoft/http-client Version ^1.0
overtrue/wechat Version ^4.1.1
swoft/framework Version ^1.0.24
swoft/http-client Version ^1.0
overtrue/wechat Version ^4.1.1
The package limingxinleo/swoft-easywechat contains the following files
Loading the files please wait ....