PHPackages                             harrygulliford/socialite-microsoft-graph - 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. harrygulliford/socialite-microsoft-graph

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

harrygulliford/socialite-microsoft-graph
========================================

Microsoft Graph Provider for Laravel Socialite

v1.5.0(1mo ago)35.4k↑125%1MITPHPPHP ^8.2

Since Sep 4Pushed 4w ago1 watchersCompare

[ Source](https://github.com/harrygulliford/socialite-microsoft-graph)[ Packagist](https://packagist.org/packages/harrygulliford/socialite-microsoft-graph)[ Docs](https://github.com/harrygulliford/socialite-microsoft-graph)[ RSS](/packages/harrygulliford-socialite-microsoft-graph/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (4)Versions (9)Used By (0)

Microsoft Graph Provider for Laravel Socialite
==============================================

[](#microsoft-graph-provider-for-laravel-socialite)

[![Latest Stable Version](https://camo.githubusercontent.com/afd7d68171b34ef8c80e8547c4c9ea2152088a0dbb9186bdc6499b8e3cb35278/68747470733a2f2f706f7365722e707567782e6f72672f686172727967756c6c69666f72642f736f6369616c6974652d6d6963726f736f66742d67726170682f762f737461626c65)](https://packagist.org/packages/harrygulliford/socialite-microsoft-graph)[![Total Downloads](https://camo.githubusercontent.com/b88198b4c708fca75315115dc3ab17b13913cee1e10f67f9057ccb460a1bf1d9/68747470733a2f2f706f7365722e707567782e6f72672f686172727967756c6c69666f72642f736f6369616c6974652d6d6963726f736f66742d67726170682f646f776e6c6f616473)](https://packagist.org/packages/harrygulliford/socialite-microsoft-graph)[![License](https://camo.githubusercontent.com/da50ae31702ff3b7f46f2e157f9026a2953077aa963911b4bacb43b30f67995b/68747470733a2f2f706f7365722e707567782e6f72672f686172727967756c6c69666f72642f736f6369616c6974652d6d6963726f736f66742d67726170682f6c6963656e7365)](https://packagist.org/packages/harrygulliford/socialite-microsoft-graph)

This package extends Laravel Socialite to give a convenient method of authenticating via the Microsoft Graph OAuth2 provider.

Support for Laravel 11, 12 and 13, Socialite 5+, and PHP 8.2+.

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

[](#installation)

You can install the package via composer:

```
composer require harrygulliford/socialite-microsoft-graph
```

Then add the service to your `config/services.php` file:

```
'microsoft-graph' => [
    'client_id' => env('MS_GRAPH_KEY'),
    'client_secret' => env('MS_GRAPH_SECRET'),
    'tenant_id' => env('MS_GRAPH_TENANT_ID', 'common'),
    'redirect' => env('MS_GRAPH_REDIRECT_URL'),
],

```

Usage
-----

[](#usage)

You are able to use the provider in the same manner as a regular Socialite provider.

```
return Socialite::with('microsoft-graph')->redirect();
```

For more information, please refer to the [Laravel Socialite documentation](https://laravel.com/docs/socialite).

License
-------

[](#license)

The MIT License (MIT). Please see the [license file](LICENSE.md) for more information.

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance94

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity76

Established project with proven stability

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

Recently: every ~483 days

Total

8

Last Release

31d ago

Major Versions

v0.1.0 → v1.0.02019-09-04

PHP version history (5 changes)v0.1.0PHP ^7.2

v1.0.0PHP ^7.1.3

v1.1.0PHP ^7.2|^8.0

v1.2.0PHP ^7.3|^8.0

v1.5.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/84bd4485c551c5241e008cdb2c20dca937cc116e9120de9b77502c82bde89bc7?d=identicon)[harrygulliford](/maintainers/harrygulliford)

---

Top Contributors

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

---

Tags

laravellaravel-socialitemicrosoft-graphphpharrygullifordsocialite-microsoft-graph

### Embed Badge

![Health badge](/badges/harrygulliford-socialite-microsoft-graph/health.svg)

```
[![Health](https://phpackages.com/badges/harrygulliford-socialite-microsoft-graph/health.svg)](https://phpackages.com/packages/harrygulliford-socialite-microsoft-graph)
```

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6804.7k6](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1563.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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