PHPackages                             tianye/open-oauth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. tianye/open-oauth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

tianye/open-oauth
=================

open-oauth

1.1.0(8y ago)191.4k6PHPPHP &gt;=5.4

Since Aug 6Pushed 8y ago3 watchersCompare

[ Source](https://github.com/tianye/WechatOpenPlatform)[ Packagist](https://packagist.org/packages/tianye/open-oauth)[ RSS](/packages/tianye-open-oauth/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (7)Used By (0)

WechatOpenPlatform
==================

[](#wechatopenplatform)

微信开放平台

[![Build Status](https://camo.githubusercontent.com/42d1c49b88f762c0dedafb62fb5d760cb3eca1cfda6fa924a057727ad17c8853/68747470733a2f2f7472617669732d63692e6f72672f7469616e79652f5765636861744f70656e506c6174666f726d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tianye/WechatOpenPlatform)[![Latest Stable Version](https://camo.githubusercontent.com/ee96319839d82232a17bb7d4495cdf548932f87f373287bb14b979d12af197f5/68747470733a2f2f706f7365722e707567782e6f72672f7469616e79652f6f70656e2d6f617574682f762f737461626c652e737667)](https://packagist.org/packages/tianye/open-oauth)[![Latest Unstable Version](https://camo.githubusercontent.com/a1bc3eceb2665c712727bbf2de3354ea242e1fabb0811b117940d8a6b7041ce9/68747470733a2f2f706f7365722e707567782e6f72672f7469616e79652f6f70656e2d6f617574682f762f756e737461626c652e737667)](https://packagist.org/packages/tianye/open-oauth)[![Build Status](https://camo.githubusercontent.com/f284c3742acc2b6894529f7c177f0cf84732010996a0cfc179d3e304d70e4806/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7469616e79652f5765636861744f70656e506c6174666f726d2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tianye/WechatOpenPlatform/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6a1c3d89acc733de31c3f6a9a536e9a02d6c29aa89e0fba5b4f9cab3b1ffeb76/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7469616e79652f5765636861744f70656e506c6174666f726d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tianye/WechatOpenPlatform/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/1817bb06f8658a92c273a0a31dba16691a6801d7bfa1a927ab9090c2d0aec263/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7469616e79652f5765636861744f70656e506c6174666f726d2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tianye/WechatOpenPlatform/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/c965415a9defea401b58a880c5d23e755e7fbd5fce16ad20439eb8f95df5ef0c/68747470733a2f2f706f7365722e707567782e6f72672f7469616e79652f6f70656e2d6f617574682f646f776e6c6f616473)](https://packagist.org/packages/tianye/open-oauth)[![License](https://camo.githubusercontent.com/500b6ee713c754efd355fb8520034a2cf83376ba7ec41caf53d2cea8a7125a9c/68747470733a2f2f706f7365722e707567782e6f72672f7469616e79652f6f70656e2d6f617574682f6c6963656e7365)](https://packagist.org/packages/tianye/open-oauth)

\####一句话安装: `composer require tianye/open-oauth -vvv`

接入其他 第三方微信SDK包方案:

```
$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.php` 中 `getAuthorizerAccessToken($authorizer_app_id)` 方法 传入 要获取 access\_token 的 服务号 APP\_ID 即可获取 到 acess\_token 已经加入到了缓存中

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

[开放平台-资源中心-授权流程技术说明](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1453779503&token=&lang=zh_CN)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~77 days

Recently: every ~58 days

Total

6

Last Release

3228d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18461675?v=4)[Tian Ye](/maintainers/tianye)[@tianye](https://github.com/tianye)

---

Top Contributors

[![tianye](https://avatars.githubusercontent.com/u/18461675?v=4)](https://github.com/tianye "tianye (18 commits)")

### Embed Badge

![Health badge](/badges/tianye-open-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/tianye-open-oauth/health.svg)](https://phpackages.com/packages/tianye-open-oauth)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[ikechukwukalu/requirepin

A laravel package for pin confirmation and validation before processing requests to a specified route

24711.0k1](/packages/ikechukwukalu-requirepin)[lion/bundle

Lion-framework configuration and initialization package

122.3k3](/packages/lion-bundle)[iamtong/laravel-admin-login-check-safe

登录添加验证码，后台用户锁定，错误次数过多锁定，密码强制修改，添加密码修改记录，登录日志

102.5k](/packages/iamtong-laravel-admin-login-check-safe)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
