PHPackages                             deyin/dyoauth - 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. deyin/dyoauth

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

deyin/dyoauth
=============

第三方登录授权SDK，用于第三方QQ，微信，微博登录

v3.3(6y ago)274MITPHPPHP &gt;=5.4

Since Mar 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/huangdeyin/dyoauth)[ Packagist](https://packagist.org/packages/deyin/dyoauth)[ RSS](/packages/deyin-dyoauth/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

PHP 第三方登录授权 SDK
===============

[](#php-第三方登录授权-sdk)

#### 用于登录QQ，微信，微博

[](#用于登录qq微信微博)

暂时只维护了QQ模块，后续需要添加新的模块

安装：

安装方式一：

`    composer require deyin/dyoauth`安装方式二：

在您的composer.json中加入配置：

```
{
    "require": {
        "deyin/dyoauth": "~2.0"
    }
}

```

示例： 发起请求

```
/**
 * 第三方登录入口
 * */
public function actionThirdParty()
{
    $type = $_GET['type'];
    if ($type == 'qq') {
        $appId = '';
        $appKey = '';
        $callbackUrl = '';
        $qq = new qqOauth($appId, $appKey, $callbackUrl);
        $url = $qq->getAuthorizeURL();
    }
    $this->redirect($url);
}

```

示例： 接受回调

```
$qq = new qqOauth();
$code = $_GET['code'];
$qq->getUserInfo($code);;

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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 ~1 days

Total

3

Last Release

2254d ago

Major Versions

v1.0 → v2.02020-03-12

v2.0 → v3.32020-03-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/6252fb201c8be53f84efcfb2ac6e365b43b9a920033ba187b87b95ec9fd92347?d=identicon)[huangdeyin](/maintainers/huangdeyin)

---

Top Contributors

[![huangdeyin](https://avatars.githubusercontent.com/u/18435236?v=4)](https://github.com/huangdeyin "huangdeyin (12 commits)")

### Embed Badge

![Health badge](/badges/deyin-dyoauth/health.svg)

```
[![Health](https://phpackages.com/badges/deyin-dyoauth/health.svg)](https://phpackages.com/packages/deyin-dyoauth)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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