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-04-19 17:42:21 UTC
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