PHPackages                             macfly/yii2-authclient-oauth2 - 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. macfly/yii2-authclient-oauth2

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

macfly/yii2-authclient-oauth2
=============================

OAuth2 client for yii2-oauth2-server

0.0.1(9y ago)41.4k1BSD-3-ClausePHP

Since Feb 28Pushed 9y ago2 watchersCompare

[ Source](https://github.com/marty-macfly/yii2-authclient-oauth2)[ Packagist](https://packagist.org/packages/macfly/yii2-authclient-oauth2)[ Docs](https://github.com/Marty-Macfly/yii2-authclient-oauth2)[ RSS](/packages/macfly-yii2-authclient-oauth2/feed)WikiDiscussions master Synced 2mo ago

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

yii2-authclient-oauth2
======================

[](#yii2-authclient-oauth2)

Yii2 authclient for [Oauth 2.0 Server Php](https://bshaffer.github.io/oauth2-server-php-docs/) work well with [macfly/yii2-oauth2-server](https://github.com/Marty-Macfly/yii2-oauth2-server)

Installation
------------

[](#installation)

Through Composer From console:

```
composer require macfly/yii2-authclient-oauth2

```

or add to "require" section to composer.json

```
"macfly/yii2-authclient-oauth2": "*"

```

\##Usage

Set up your Oauth2 server, you can see () And add the Oauth2 client to your auth clients.

```
php
'components' => [
    'authClientCollection' => [
      'class'   => \yii\authclient\Collection::className(),
      'clients' => [
        'oauth2-server-php' => [
          'class'             => 'macfly\authclient\OAuth2',
          'authUrl'         => 'http://193.168.5.1:8889/oauth2/authorize',
          'tokenUrl'        => 'http://193.168.5.1:8889/oauth2/token',
          'apiBaseUrl'      => 'http://193.168.5.1:8889/oauth2',
#         'returnUrl'       => 'http://127.0.0.1:8888/user/security/auth?authclient=oauth2',
          'clientId'        => 'testclient',
          'clientSecret'    => 'testpass',
        ],
        // other clients
      ],
    ],
    // ...
 ]

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3360d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74924cc29f67eef7ca7640876dd3462974466ea683f8d059c70a33b3087d7230?d=identicon)[Macfly](/maintainers/Macfly)

---

Tags

oauth2yii2authclientoauth2-server-php

### Embed Badge

![Health badge](/badges/macfly-yii2-authclient-oauth2/health.svg)

```
[![Health](https://phpackages.com/badges/macfly-yii2-authclient-oauth2/health.svg)](https://phpackages.com/packages/macfly-yii2-authclient-oauth2)
```

###  Alternatives

[kotchuprik/yii2-instagram-authclient

Instagram extenion for using via yii2-authclient

2048.5k](/packages/kotchuprik-yii2-instagram-authclient)

PHPackages © 2026

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