PHPackages                             pde159/yii2-authclient-microsoft - 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. pde159/yii2-authclient-microsoft

ActiveLibrary

pde159/yii2-authclient-microsoft
================================

Microsoft 365/Azure auth provider

0.0.2(5y ago)12491[1 PRs](https://github.com/pde159/yii2-authclient-microsoft/pulls)BSD-3-ClausePHP

Since Jul 27Pushed 2y agoCompare

[ Source](https://github.com/pde159/yii2-authclient-microsoft)[ Packagist](https://packagist.org/packages/pde159/yii2-authclient-microsoft)[ Docs](https://github.com/pde159/yii2-authclient-microsoft)[ RSS](/packages/pde159-yii2-authclient-microsoft/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

yii2-authclient-microsoft
=========================

[](#yii2-authclient-microsoft)

Yii2 authclient for Microsoft 365/Azure

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

[](#installation)

With Composer :

```
composer require pde159/yii2-authclient-microsoft
```

or add to "require" section to composer.json

```
"pde159/yii2-authclient-microsoft": "*"
```

Usage
-----

[](#usage)

First create you Application via Microsoft Azure Portal and configure :

- a redirect URI
- a secret key
- set to `all tenant` for multitenant availability

And add the Oauth2 client to your Yii2 configuration `component` section

```
'components' => [
    'authClientCollection' => [
        'class'   => \yii\authclient\Collection::className(),
        'clients' => [
            'microsoft' => [
                'class'         => 'pde159\authclient\Microsoft',
                'returnUrl'     => 'http://localhost/user/login',
                'clientId'      => 'clientIDyoudefinedInAzurePortal',
                'clientSecret'  => 'SecretyoucratedinAzurePortal',
            ],
            ...
        ],
    ],
    ...
]
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

2112d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62f24101d9a923a603d925c0be556aa280c9cf7336ceee8e14d9646fda009ff1?d=identicon)[pde159](/maintainers/pde159)

---

Top Contributors

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

---

Tags

oauth2microsoftazureyii2authclient365

### Embed Badge

![Health badge](/badges/pde159-yii2-authclient-microsoft/health.svg)

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

###  Alternatives

[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[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)
