2017 © Pedro Peláez
 

library wechat-applet

wechat applet lib

image

phprush/wechat-applet

wechat applet lib

  • Thursday, November 23, 2017
  • by jianyong
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 8 % Grown

The README.md

wechat-applet

使用方式

/**
 * Laravel 5 微信小程序插件
 * @see https://mp.weixin.qq.com/debug/wxadoc/dev/api/
 * @exception Exception
 * @return array
 */

$code = 'xxxxxxxx';

try {
    $loginInfo = WechatApplet::getLoginInfo($code);
    dump($loginInfo);
} catch ( Exception $e) {
    dump($e);
}

安装方式

composer require phprush/wechat-applet

php artisan vendor:publish --provider="PhpRush\Wechat\Applet\WechatAppletServiceProvider"

###### https://d.laravel-china.org/docs/5.5/providers
array_merge(config('app.providers'), [
  PhpRush\Wechat\Applet\WechatAppletServiceProvider::class
]);

###### https://d.laravel-china.org/docs/5.5/facades
array_merge(config('app.aliases'), [
  'WechatApplet' => PhpRush\Wechat\Applet\Facades\WechatApplet::class
]);

在config/wechat/applet.php 中使用 env('WECHAT_APPLET_APPID')/env('WECHAT_APPLET_SECRET')

vim .env
  WECHAT_APPLET_APPID=xxxxxxxx
  WECHAT_APPLET_SECRET=xxxxxxxx

The Versions

23/11 2017

dev-master

9999999-dev

wechat applet lib

  Sources   Download

MIT

The Requires

 

by Avatar jianyong

23/11 2017

v1.0.5

1.0.5.0

wechat applet lib

  Sources   Download

MIT

The Requires

 

by Avatar jianyong

16/11 2017

v1.0.4

1.0.4.0

wechat applet lib

  Sources   Download

MIT

The Requires

 

by Avatar jianyong

16/11 2017

v1.0.3

1.0.3.0

wechat applet lib

  Sources   Download

MIT

The Requires

 

by Avatar jianyong

16/11 2017

v1.0.2

1.0.2.0

wechat applet lib

  Sources   Download

MIT

The Requires

 

by Avatar jianyong

16/11 2017

v1.0.1

1.0.1.0

wechat applet lib

  Sources   Download

MIT

The Requires

 

by Avatar jianyong