lsshu / wechat
API
v1.0.1
2019-11-19 06:33 UTC
Requires
- php: >=7.0.0
This package is auto-updated.
Last update: 2024-09-19 18:32:16 UTC
README
api.
安装
$ composer require lsshu/wechat
使用 ACCOUNT
实例化ACCOUNT
$config = ['appId'=>'','appSecret'=>''] ; $account = Lsshu\Wechat\Service::account($config);
使用 MESSAGE
实例化MESSAGE
$config = ['appId'=>'','token'=>'','encodingAesKey'=>''] ; $message = Lsshu\Wechat\Service::message($config);
使用 PROGRAM
实例化PROGRAM
$config = ['appId'=>'','appSecret'=>''] ; $program = Lsshu\Wechat\Service::program($config);
登录凭证校验 code2Session
$res = $program->code2Session($code);
二维码 createWXAQRCode
$res = $program->createWXAQRCode($path, $width);
二维码 getWXACode
$res = $program->getWXACode($path, $width, $auto_color, $line_color, $is_hyaline);
二维码 getWXACodeUnlimit
$res = $program->getWXACodeUnlimit($scene, $page, $width, $auto_color, $line_color, $is_hyaline);
贡献
您可以通过以下三种方式之一进行贡献:
代码贡献过程并不非常正式。您只需要确保遵循PSR-0、PSR-1和PSR-2编码规范。任何新的代码贡献都必须附带单元测试(如有适用)。
许可证
MIT