Download the PHP package ledc/easywechat without Composer
On this page you can find all versions of the php package ledc/easywechat. 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 easywechat
基于EasyWechat的webman支付插件
安装
composer require ledc/easywechat
使用
开箱即用,只需要传入一个配置即可:
在创建实例后,所有的方法都可以有IDE自动补全;例如:
微信支付回调URL
https://您的域名/wechat/pay/callback
具体处理逻辑在:
\Ledc\EasyWechat\PayNotifyService::handle
处理支付回调的最佳实践:
注册webman事件,监听 \Ledc\EasyWechat\Enums\EventEnum 的三个事件即可;
修改 config/event.php ,加入:
微信公众号消息回调URL
https://您的域名/wechat/account/callback
具体处理逻辑在:
\Ledc\EasyWechat\WechatService::handle
微信公众号网页授权登录授权完成后,重定向URL
https://您的域名/wechat/account/oauth/redirect
具体处理逻辑在:
\Ledc\EasyWechat\OfficialAccount\OauthMiddleware::redirect
注:使用微信公众号网页授权时,请在中间件配置中,添加此中间件
\Ledc\EasyWechat\OfficialAccount\OauthMiddleware::class
二次开发
捐赠
All versions of easywechat with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3
workerman/webman-framework Version >=1.6
monolog/monolog Version >=2.9 || >=3.5
webman/event Version >=1.0
w7corp/easywechat Version ^6.15
ext-json Version *
ext-openssl Version *
ext-bcmath Version *
ledc/container Version >=8.3
workerman/webman-framework Version >=1.6
monolog/monolog Version >=2.9 || >=3.5
webman/event Version >=1.0
w7corp/easywechat Version ^6.15
ext-json Version *
ext-openssl Version *
ext-bcmath Version *
ledc/container Version >=8.3
The package ledc/easywechat contains the following files
Loading the files please wait ...