PHPackages                             apility/microsoft-graph-api - 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. [API Development](/categories/api)
4. /
5. apility/microsoft-graph-api

ActiveLibrary[API Development](/categories/api)

apility/microsoft-graph-api
===========================

This package provides a PHP client library for working with the Microsoft Graph API.

v1.0.0-RC4(2y ago)270MITPHPPHP ^7.4|^8.0

Since Aug 17Pushed 2y agoCompare

[ Source](https://github.com/apility/microsoft-graph-api)[ Packagist](https://packagist.org/packages/apility/microsoft-graph-api)[ RSS](/packages/apility-microsoft-graph-api/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (12)Versions (5)Used By (0)

Microsoft Graph API client library
==================================

[](#microsoft-graph-api-client-library)

This package provides a Laravel wwrappers for working with the Microsoft Graph API.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Laravel](#laravel)
    - [Configuration](#configuration)
    - [Usage](#usage)
    - [Filesystem](#filesystem)
- [Without Laravel (Plain PHP)](#without-laravel-plain-php)
    - [Usage](#usage-1)
- [License](#license)

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

[](#installation)

```
composer require apility/microsoft-graph-api
```

Laravel
-------

[](#laravel)

### Configuration

[](#configuration)

Export the configuration file:

```
php artisan vendor:publish --provider="Microsoft\GraphAPI\ServiceProvider" --tag="config"
```

Add the following environment variables to your `.env` file:

```
MICROSOFT_GRAPH_API_TENANT_ID=
MICROSOFT_GRAPH_API_APP_ID=
MICROSOFT_GRAPH_API_CLIENT_SECRET=
```

### Usage

[](#usage)

```
use Microsoft\GraphAPI\Facades\GraphAPI;

$me = GraphAPI::get('/me')->json();
```

### Filesystem

[](#filesystem)

The package also provides a Flysystem adapter.

To enable this, add the following to your disk configuration in the `config/filesystems.php` file:

```
'disks' => [
    'microsoft' => [
        'driver' => 'microsoft',
        'site_id' => env('MICROSOFT_GRAPH_API_SITE_ID'),
    ],
],
```

You may now use the `microsoft` disk in your application.

```
$files = Storage::disk('microsoft')->allFiles('path');
```

Only read, list and delete operations are currently supported.

Without Laravel (Plain PHP)
---------------------------

[](#without-laravel-plain-php)

### Usage

[](#usage-1)

```
use Microsoft\GraphAPI\GraphAPI\Client;
use Microsoft\GraphAPI\GraphAPI\Auth\Credentials;

$credentials = new Credentials(
    '',
    '',
    ''
);

$client = new Client($credentials);

$me = $client->get('/me');
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

---

Copyright Apility AS © 2023

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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

Every ~2 days

Total

4

Last Release

1043d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14291825?v=4)[Thomas Alrek](/maintainers/thomas-alrek)[@thomas-alrek](https://github.com/thomas-alrek)

---

Top Contributors

[![thomas-alrek](https://avatars.githubusercontent.com/u/14291825?v=4)](https://github.com/thomas-alrek "thomas-alrek (4 commits)")

---

Tags

laravelmicrosoft-graph-apiphpapilaravelpackagemicrosoftgraph

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/apility-microsoft-graph-api/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M131](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[flat3/lodata

OData v4.01 Producer for Laravel

99351.7k](/packages/flat3-lodata)

PHPackages © 2026

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