PHPackages                             victorap93/azuread - 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. victorap93/azuread

ActiveLibrary

victorap93/azuread
==================

Azure AD is an easy way to use Azure AD 2.0 Protocols to get authorization token

0.1.0(4y ago)04MITPHPPHP &gt;=5.5

Since Apr 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/victorap93/azuread)[ Packagist](https://packagist.org/packages/victorap93/azuread)[ RSS](/packages/victorap93-azuread/feed)WikiDiscussions main Synced 4w ago

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

Azure AD
========

[](#azure-ad)

[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/028082678102802087d424a5b5e9eee5881f9b1546ec113e39bdbe62ecd01574/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f766963746f72617039332f617a75726561642e7376673f7374796c653d666c61742d737175617265)](https://github.com/victorap93/azuread/releases)[![Total Downloads](https://camo.githubusercontent.com/11a0c6f57aa4b8f25c94be80a3f01d597f8a490c030d9717e34191f4c010ecfa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766963746f72617039332f617a75726561642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/victorap93/azuread)

Azure AD is an easy way to use Azure AD 2.0 Protocols to get authorization token

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

[](#installation)

The recommended way to install this is through [Composer](https://getcomposer.org/).

```
composer require victorap93/azuread
```

How to use
----------

[](#how-to-use)

### Get the nedded parameters:

[](#get-the-nedded-parameters)

Read this [step](https://docs.microsoft.com/pt-br/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-access-token-with-a-client_secret) to know how to get neded params.

### Get Token by using Microsoft **client secret**:

[](#get-token-by-using-microsoft-client-secret)

```
require_once "./vendor/autoload.php";

use \victorap93\AzureAD;

$tenantId = "";
$clientId = "";
$scope = "https://graph.microsoft.com/.default";
$clientSecret = "";

$AzureAD = new AzureAD;
$azure_token = $AzureAD->getMSTokenBySecret($tenantId, $clientId, $scope, $clientSecret);
echo $azure_token->access_token;
```

### Get Token by using Miscrosoft **username** and **password**:

[](#get-token-by-using-miscrosoft-username-and-password)

```
require_once "./vendor/autoload.php";

use \victorap93\AzureAD;

$tenantId = "";
$clientId = "";
$scope = "https://graph.microsoft.com/.default";
$username = "";
$password = "";

$AzureAD = new AzureAD;
$azure_token = $AzureAD->getMSTokenByCredentials($tenantId, $clientId, $scope, $username, $password);
echo $azure_token->access_token;
```

Help and docs
-------------

[](#help-and-docs)

- [Application types for the Microsoft identity platform](https://docs.microsoft.com/pt-br/azure/active-directory/develop/v2-app-types)

License
-------

[](#license)

Azure AD is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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

1470d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21a59b5dc4d17fe6457c4a31e88c02103e0cb443c0400827baa094045b164ce9?d=identicon)[victorap93](/maintainers/victorap93)

---

Top Contributors

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

---

Tags

tokenmicrosoftazure-ad

### Embed Badge

![Health badge](/badges/victorap93-azuread/health.svg)

```
[![Health](https://phpackages.com/badges/victorap93-azuread/health.svg)](https://phpackages.com/packages/victorap93-azuread)
```

###  Alternatives

[kreait/firebase-tokens

A library to work with Firebase tokens

24040.8M14](/packages/kreait-firebase-tokens)[rinvex/authy

Rinvex Authy is a simple wrapper for Authy TOTP API, the best rated Two-Factor Authentication service for consumers, simplest 2fa Rest API for developers and a strong authentication platform for the enterprise.

35188.4k1](/packages/rinvex-authy)[rinvex/laravel-authy

Rinvex Authy is a simple wrapper for Authy TOTP, the best rated Two-Factor Authentication service for consumers, simplest 2fa Rest API for developers and a strong authentication platform for the enterprise.

3376.7k1](/packages/rinvex-laravel-authy)[mrprompt/cielo

Integration with Cielo gateway.

481.9k1](/packages/mrprompt-cielo)[calendart/office365-adapter

Office365 Adapter for CalendArt

1213.8k](/packages/calendart-office365-adapter)

PHPackages © 2026

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