PHPackages                             microsoft/kiota-authentication-phpleague - 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. microsoft/kiota-authentication-phpleague

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

microsoft/kiota-authentication-phpleague
========================================

Authentication provider for Kiota using the PHP League OAuth 2.0 client to authenticate against the Microsoft Identity platform

2.0.1(2mo ago)153.2M—1.4%67MITPHPPHP ^8.2CI passing

Since Jun 22Pushed 2mo ago16 watchersCompare

[ Source](https://github.com/microsoft/kiota-authentication-phpleague-php)[ Packagist](https://packagist.org/packages/microsoft/kiota-authentication-phpleague)[ RSS](/packages/microsoft-kiota-authentication-phpleague/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (34)Used By (7)

Kiota Authentication Provider Library for PHP
=============================================

[](#kiota-authentication-provider-library-for-php)

[![Build Status](https://github.com/microsoft/kiota-authentication-phpleague-php/actions/workflows/pr-validation.yml/badge.svg)](https://github.com/microsoft/kiota-authentication-phpleague-php/actions/workflows/pr-validation.yml/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/c6ff90beec8de6de252c8cc1467cd3acec584e18267af719f42f287e2e11fe8d/68747470733a2f2f706f7365722e707567782e6f72672f6d6963726f736f66742f6b696f74612d61757468656e7469636174696f6e2d7068706c65616775652f76657273696f6e)](https://packagist.org/packages/microsoft/kiota-authentication-phpleague)[![Coverage](https://camo.githubusercontent.com/559d4f1ed49bd1111930b1babab4a8f58ed9fb491940b4fdc1903daa5cc14661/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6d6963726f736f66745f6b696f74612d61757468656e7469636174696f6e2d7068706c65616775652d706870266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=microsoft_kiota-authentication-phpleague-php)

The Kiota Authentication provider library for PHP uses the [PHP League OAuth 2.0 client](https://oauth2-client.thephpleague.com/) to authenticate against the Microsoft Identity platform.

A [Kiota](https://github.com/microsoft/kiota) generated project will need a reference to a authentication provider library to authenticate HTTP requests to an API endpoint.

Read more about Kiota [here](https://github.com/microsoft/kiota/blob/main/README.md).

Using the Kiota Authentication Provider Library for PHP
-------------------------------------------------------

[](#using-the-kiota-authentication-provider-library-for-php)

run `composer require microsoft/kiota-authentication-phpleague` or add the following to your `composer.json` file:

```
{
    "require": {
        // x-release-please-start-version
        "microsoft/kiota-authentication-phpleague": "^2.0.1"
        // x-release-please-end
    }
}

```

Contributing
------------

[](#contributing)

This project welcomes contributions and suggestions. This project welcomes contributions and suggestions. Issues and pull requests should be made against the [kiota-php](https://github.com/microsoft/kiota-php/) repository. This repository is only used for releases.

Trademarks
----------

[](#trademarks)

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft's Trademark &amp; Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance87

Actively maintained with recent releases

Popularity53

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~97 days

Total

26

Last Release

63d ago

Major Versions

0.9.0 → 1.0.02023-11-01

1.5.2 → 2.0.02026-02-24

PHP version history (3 changes)0.1.0PHP ^7.4 | ^8.0

1.5.0PHP ^7.4 || ^8.0

2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/c8e34d6b91768c62ce0ec113fff52ede2e884fca463482ae00a3b74c68b29763?d=identicon)[graphsdkpub](/maintainers/graphsdkpub)

---

Top Contributors

[![Ndiritu](https://avatars.githubusercontent.com/u/10958912?v=4)](https://github.com/Ndiritu "Ndiritu (118 commits)")[![SilasKenneth](https://avatars.githubusercontent.com/u/11555354?v=4)](https://github.com/SilasKenneth "SilasKenneth (73 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (24 commits)")[![baywet](https://avatars.githubusercontent.com/u/7905502?v=4)](https://github.com/baywet "baywet (22 commits)")[![microsoft-graph-devx-bot[bot]](https://avatars.githubusercontent.com/in/1127974?v=4)](https://github.com/microsoft-graph-devx-bot[bot] "microsoft-graph-devx-bot[bot] (5 commits)")[![Robertbaelde](https://avatars.githubusercontent.com/u/4356288?v=4)](https://github.com/Robertbaelde "Robertbaelde (4 commits)")[![andrueastman](https://avatars.githubusercontent.com/u/6464005?v=4)](https://github.com/andrueastman "andrueastman (4 commits)")[![release-please-token-provider[bot]](https://avatars.githubusercontent.com/u/17304259?v=4)](https://github.com/release-please-token-provider[bot] "release-please-token-provider[bot] (4 commits)")[![uncaught](https://avatars.githubusercontent.com/u/10322643?v=4)](https://github.com/uncaught "uncaught (1 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")[![fey101](https://avatars.githubusercontent.com/u/11347476?v=4)](https://github.com/fey101 "fey101 (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")[![hubipe](https://avatars.githubusercontent.com/u/617880?v=4)](https://github.com/hubipe "hubipe (1 commits)")[![release-please[bot]](https://avatars.githubusercontent.com/in/40688?v=4)](https://github.com/release-please[bot] "release-please[bot] (1 commits)")[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (1 commits)")

---

Tags

kiotaoauthphpphpleague

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/microsoft-kiota-authentication-phpleague/health.svg)

```
[![Health](https://phpackages.com/badges/microsoft-kiota-authentication-phpleague/health.svg)](https://phpackages.com/packages/microsoft-kiota-authentication-phpleague)
```

###  Alternatives

[thenetworg/oauth2-azure

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

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

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

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)[thathoff/kirby-oauth

Kirby OAuth 2 Plugin

3823.9k](/packages/thathoff-kirby-oauth)

PHPackages © 2026

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