PHPackages                             chunlaw/yii2-azure-authclient - 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. chunlaw/yii2-azure-authclient

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

chunlaw/yii2-azure-authclient
=============================

External authentication via OAuth and OpenID for the Yii framework, support Azure account

2.2.1(5y ago)110.2k↓25%2BSD-3-ClausePHP

Since Mar 25Pushed 5y ago2 watchersCompare

[ Source](https://github.com/chunlaw/yii2-azure-authclient)[ Packagist](https://packagist.org/packages/chunlaw/yii2-azure-authclient)[ RSS](/packages/chunlaw-yii2-azure-authclient/feed)WikiDiscussions main Synced 1mo ago

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

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Azure AuthClient Extension for Yii 2
====================================

[](#azure-authclient-extension-for-yii-2)

This extension adds [Azure](https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow) [OAuth2](http://oauth.net/2/) client for the extensions [Yii 2 AuthClient](https://github.com/yiisoft/yii2-authclient). This extension is able to handle both work/organization and personal accounts resided in Azure, while solely [Yii 2 AuthClient](https://github.com/yiisoft/yii2-authclient) is only able to handle personal accounts.

For license information check the [LICENSE](https://github.com/chunlaw/yii2-authclient/blob/master/LICENSE.md)-file.

Documentation is at [docs/guide/README.md](https://github.com/chunlaw/yii2-authclient/blob/master/docs/guide/README.md).

[![Latest Stable Version](https://camo.githubusercontent.com/262c45afac53dcdb5dc2a477ee17ae69afe069a8236a627d42b12c623c4a26e4/68747470733a2f2f706f7365722e707567782e6f72672f6368756e6c61772f796969322d617a7572652d61757468636c69656e742f762f737461626c652e706e67)](https://packagist.org/packages/chunlaw/yii2-azure-authclient)[![Total Downloads](https://camo.githubusercontent.com/fe921763947fdb3f3cbb713e809347a64b08930f70bd090f8cf26f42a5a9ef34/68747470733a2f2f706f7365722e707567782e6f72672f6368756e6c61772f796969322d617a7572652d61757468636c69656e742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii2-azure-authclient)[![Build Status](https://github.com/chunlaw/yii2-azure-authclient/actions/workflows/php.yml/badge.svg)](https://github.com/chunlaw/yii2-azure-authclient/actions)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require --prefer-dist chunlaw/yii2-azure-authclient

```

or add

```
"chunlaw/yii2-azure-authclient": "~2.2.0"
```

to the `require` section of your composer.json.

Configuring application
-----------------------

[](#configuring-application)

After extension is installed, you need to setup auth client collection application component:

```
return [
    'components' => [
        'authClientCollection' => [
            'class' => 'yii\authclient\Collection',
            'clients' => array_filter([
                'azure' => [
                    'class' => 'chunlaw\authclient\Azure',
                    'returnUrl' => '',
                    'clientId' => '',
                    'clientSecret' => ''
                ],
                'google' => [
                    'class' => 'yii\authclient\clients\Google',
                    'returnUrl' => '',
                    'clientId' => '',
                    'clientSecret' => '',
                ],
				// etc.
            ]),
        ],
    ],
    // ...
];

```

Other usage remains the same as [AuthClient Extension for Yii 2](https://www.yiiframework.com/extension/yiisoft/yii2-authclient/doc/guide/2.0/en/quick-start).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

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

Total

2

Last Release

1875d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f0c2249abdfcf8b65632f1decd232fa6c681f7e0f64d8c5745f1cb242ea8dff?d=identicon)[chunlaw](/maintainers/chunlaw)

---

Top Contributors

[![chunlaw](https://avatars.githubusercontent.com/u/4438690?v=4)](https://github.com/chunlaw "chunlaw (3 commits)")

### Embed Badge

![Health badge](/badges/chunlaw-yii2-azure-authclient/health.svg)

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

###  Alternatives

[xj/yii2-oauth

yii2-oauth

10927.8k1](/packages/xj-yii2-oauth)[budyaga/yii2-users

Module for manage users and their rights with the support of registration through social services and assigned to each user more than one social service.

409.1k](/packages/budyaga-yii2-users)[lowbase/yii2-user

Yii2 user module

131.5k2](/packages/lowbase-yii2-user)

PHPackages © 2026

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