2017 © Pedro Peláez
 

library weixin

weixin libray

image

vestin/weixin

weixin libray

  • Wednesday, January 20, 2016
  • by Vestin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

weixin

usage

config

example, (*1)

$config = [
    'access_token_key_name' =>'weixin_access_token',
    'jsapi_ticket_key_name' =>'weixin_jsapi_ticket',
    'appid'     =>'wx1dcb74f95d60041f',
    'secret'    =>'2ba6350b18c47cfc23e89b3dbcaed7ca',
    'scope'     =>'snsapi_userinfo',
];

sign package

    $Weixin = new Weixin($config,$redis);
    $signPackage = $Weixin->getSignPackage();

getUserAccessToken

//client side get the code $user_access_token = $Weixin->getUserAccessToken($code), (*2)

getUserInfo

$Weixin->getUserInfo($user_access_token,$openid,$user_refresh_token), (*3)

The Versions

20/01 2016

dev-master

9999999-dev https://github.com/Vestin/weixin

weixin libray

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Avatar Vestin

20/01 2016

0.0.1

0.0.1.0 https://github.com/Vestin/weixin

weixin libray

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Avatar Vestin