lsshu/wechat
Composer 安装命令:
composer require lsshu/wechat
包简介
api
README 文档
README
api.
Installing
$ composer require lsshu/wechat
Usage ACCOUNT
实例化ACCOUNT
$config = ['appId'=>'','appSecret'=>''] ; $account = Lsshu\Wechat\Service::account($config);
Usage MESSAGE
实例化MESSAGE
$config = ['appId'=>'','token'=>'','encodingAesKey'=>''] ; $message = Lsshu\Wechat\Service::message($config);
Usage 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);
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT
统计信息
- 总下载量: 58
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-28