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)266MITPHPPHP ^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 1mo ago

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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

997d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/302a4d5539139f2957faf60d731a0fbb346a2a1419acf9ace282e91a3edd8099?d=identicon)[thomas-alrek](/maintainers/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

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[flat3/lodata

OData v4.01 Producer for Laravel

96320.9k](/packages/flat3-lodata)[joggapp/laravel-aws-sns

Laravel package for the SNS events by AWS

3171.8k](/packages/joggapp-laravel-aws-sns)

PHPackages © 2026

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