PHPackages                             steinbauerit/azure-auth-php-client - 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. steinbauerit/azure-auth-php-client

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

steinbauerit/azure-auth-php-client
==================================

PHP client for azure authentication

1.0.0(1y ago)01671PHP

Since Aug 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/inoovum/azure-auth-php-client)[ Packagist](https://packagist.org/packages/steinbauerit/azure-auth-php-client)[ RSS](/packages/steinbauerit-azure-auth-php-client/feed)WikiDiscussions main Synced today

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

PHP client for azure authentication
===================================

[](#php-client-for-azure-authentication)

PHP client for azure authentication

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

[](#installation)

Just run

```
composer require steinbauerit/azure-auth-php-client

```

Usage
-----

[](#usage)

```
try {
    $clientId = 'clientId';
    $clientSecret = 'secret';
    $authorizationCode = 'authCode';

    $tenantId = 'common';
    $redirectUri = 'http://localhost';

    // The auth provider will only authorize requests to
    // the allowed hosts, in this case Microsoft Graph
    $allowedHosts = ['graph.microsoft.com'];
    $scopes = ['User.Read'];

    $tokenRequestContext = new AuthorizationCodeContext(
        $tenantId,
        $clientId,
        $clientSecret,
        $authorizationCode,
        $redirectUri
    );

    $authProvider = new PhpLeagueAuthenticationProvider($tokenRequestContext, $scopes, $allowedHosts);
    $requestAdapter = new GuzzleRequestAdapter($authProvider);
    $client = new GraphApiClient($requestAdapter);

    $me = $client->me()->get()->wait();
    echo "Hello {$me->getDisplayName()}, your ID is {$me->getId()}";

} catch (ApiException $ex) {
    echo $ex->getMessage();
}

```

Author
------

[](#author)

- E-Mail:
- URL:

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

701d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8604597e730303a1739fbb6a24bcf77019b22068e5d838ae4c12756e8121b488?d=identicon)[patriceckhart](/maintainers/patriceckhart)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/steinbauerit-azure-auth-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/steinbauerit-azure-auth-php-client/health.svg)](https://phpackages.com/packages/steinbauerit-azure-auth-php-client)
```

###  Alternatives

[microsoft/microsoft-graph-core

The Microsoft Graph Core SDK for PHP

153.8M6](/packages/microsoft-microsoft-graph-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[sproutcms/cms

Enterprise content management and framework

242.5k4](/packages/sproutcms-cms)

PHPackages © 2026

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