2017 © Pedro Peláez
 

library wechat-open-sdk

wechat-open-sdk

image

tianye/wechat-open-sdk

wechat-open-sdk

  • Tuesday, August 29, 2017
  • by tianye
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

WechatOpenSdk

微信开放平台, (*1)

一句话安装:

composer require tianye/wechat-open-sdk -vvv, (*2)

接入其他 第三方微信SDK包方案:, (*3)

$config = new Config();
$config->init(['component_app_id' => '第三方平台appId', 'component_app_secret' => '第三方平台appSecret', 'component_app_token' => '第三方平台appToken', 'component_app_key' => '第三方平台appKey']);

$redis_driver = new \WechatOpen\Core\DBDriver\RedisDriver(['host' => '127.0.0.1', 'port' => '6379', 'database' => '2'], 'Cache:WechatOpen:');

$db = new DB($redis_driver);

Core::init($db);

初始化 配置 和 选择缓存驱动 和 数据存储 是 必须的~

src/Authorized.phpgetAuthorizerAccessToken($authorizer_app_id) 方法 传入 要获取 access_token 的 服务号 APP_ID 即可获取 到 acess_token 已经加入到了缓存中, (*4)

注意 走 授权的 方法有改变 可以参照: src/OpenAuth 中 的 方案 使用方式 demo/oauth_demo 中, (*5)

开放平台-资源中心-授权流程技术说明, (*6)

The Versions

29/08 2017

dev-master

9999999-dev

wechat-open-sdk

  Sources   Download

The Requires

 

by Avatar tianye

29/08 2017

1.2.1

1.2.1.0

wechat-open-sdk

  Sources   Download

The Requires

 

by Avatar tianye

14/06 2017

1.1.2

1.1.2.0

wechat-open-sdk

  Sources   Download

The Requires

 

by Avatar tianye

12/04 2017

1.1.1

1.1.1.0

wechat-open-sdk

  Sources   Download

The Requires

 

by Avatar tianye

05/04 2017

1.0.1

1.0.1.0

wechat-open-sdk

  Sources   Download

The Requires

 

by Avatar tianye