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.4.0(3y ago)35.0k↑200%1MITPHPPHP ^7.3|^8.0

Since Sep 4Pushed 3y 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 1mo ago

READMEChangelog (3)Dependencies (2)Versions (8)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 6+ and Socialite 5+, using PHP 7.3+ &amp; 8.0+.

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/6.0/socialite).

License
-------

[](#license)

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

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

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

Recently: every ~193 days

Total

7

Last Release

1147d ago

Major Versions

v0.1.0 → v1.0.02019-09-04

PHP version history (4 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

### 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 (16 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

[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42442.0M544](/packages/socialiteproviders-manager)[andrewdwallo/filament-companies

A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.

34450.0k2](/packages/andrewdwallo-filament-companies)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)[pschocke/laravel-telegram-login-widget

Easily integrate Telegrams login widget into your Laravel application to send Telegram messages

1610.4k](/packages/pschocke-laravel-telegram-login-widget)

PHPackages © 2026

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