2017 © Pedro Peláez
 

library open-oauth

open-oauth

image

tianye/open-oauth

open-oauth

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

The README.md

WechatOpenPlatform

微信开放平台, (*1)

Build Status Latest Stable Version Latest Unstable Version Build Status Scrutinizer Code Quality Code Coverage Total Downloads License , (*2)

一句话安装:

composer require tianye/open-oauth -vvv, (*3)

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

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

$cacheDriver    = new \OpenOauth\Core\CacheDriver\RedisDriver(['host' => '127.0.0.1', 'port' => '6379', 'database' => '1']);
$databaseDriver = new \OpenOauth\Core\DatabaseDriver\RedisDriver(['host' => '127.0.0.1', 'port' => '6379', 'database' => '1']);
Core::init($cacheDriver, $databaseDriver);

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

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

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

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

The Versions

29/08 2017

dev-master

9999999-dev

open-oauth

  Sources   Download

The Requires

 

by Avatar tianye

29/08 2017

1.1.0

1.1.0.0

open-oauth

  Sources   Download

The Requires

 

by Avatar tianye

14/06 2017

1.0.4

1.0.4.0

open-oauth

  Sources   Download

The Requires

 

by Avatar tianye

28/03 2017

1.0.3

1.0.3.0

open-oauth

  Sources   Download

The Requires

 

by Avatar tianye

16/02 2017

1.0.2

1.0.2.0

open-oauth

  Sources   Download

The Requires

 

by Avatar tianye

09/01 2017

1.0.1

1.0.1.0

open-oauth

  Sources   Download

The Requires

 

by Avatar tianye

06/08 2016

1.0

1.0.0.0

open-oauth

  Sources   Download

The Requires

 

by Avatar tianye