lsshu/wechat

v1.0.1 2019-11-19 06:33 UTC

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:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. 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