PHPackages                             manhdan/microsoftgraph - 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. manhdan/microsoftgraph

ActiveLibrary[API Development](/categories/api)

manhdan/microsoftgraph
======================

Microsoftgraph - A simple Laravel package.

v1.0.3(4y ago)25MITPHPPHP &gt;=7.2

Since Dec 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/manh-dan/microsoftgraph)[ Packagist](https://packagist.org/packages/manhdan/microsoftgraph)[ RSS](/packages/manhdan-microsoftgraph/feed)WikiDiscussions main Synced 3w ago

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

Get started with the Microsoft Graph SDK for PHP
================================================

[](#get-started-with-the-microsoft-graph-sdk-for-php)

If your project uses the Microsoft Graph API, you should use this library to make it easier to implement with the Microsoft Graph API.
Documentation Microsoft Graph API:

Install the SDK
---------------

[](#install-the-sdk)

You can install the PHP SDK with Composer, either run `composer require manhdan/microsoftgraph`, or edit your `composer.json` file:

```
"manhdan/microsoftgraph": "^1.0"

```

Configuration
-------------

[](#configuration)

You can publish MicrosoftGraph config and view files into your project by running:

```
php artisan vendor:publish --tag=microsoftgraph-config

```

You add the following properties to file .env:

```
MICROSOFT_GRAPH_CLIENT_ID=
MICROSOFT_GRAPH_TENANT_ID=
MICROSOFT_GRAPH_CLIENT_SECRET=
MICROSOFT_GRAPH_VERSION=

```

Get started with Microsoft Graph
--------------------------------

[](#get-started-with-microsoft-graph)

### Call Microsoft Graph using the v1.0 endpoint

[](#call-microsoft-graph-using-the-v10-endpoint)

The following is an example that shows how to call Microsoft Graph.

```
use Manhdan\Microsoft\Graph\Graph;

class ManhDanExample
{
    public function run()
    {
        $graph = new Graph();
        return $graph->withHeaders(['X-First' => 'foo'])->get('/users');
    }
}
```

### Call Microsoft Graph using the beta endpoint

[](#call-microsoft-graph-using-the-beta-endpoint)

The following is an example that shows how to call Microsoft Graph.

```
use Manhdan\Microsoft\Graph\Graph;

class ManhDanExample
{
    public function run()
    {
        $graph = new Graph();
        return $graph->withHeaders(['X-First' => 'foo'])->onVersion('beta')->get('/users');
    }
}
```

Copyright and license
---------------------

[](#copyright-and-license)

Copyright (c) ManhDanBlogs Corporation. All Rights Reserved. Licensed under the MIT \[license\].

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

4

Last Release

1640d ago

PHP version history (2 changes)v1.0.0PHP ^7.3|^8.0

v1.0.2PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7835020?v=4)[ManhDan](/maintainers/ManhDan)[@manhdan](https://github.com/manhdan)

---

Top Contributors

[![manh-dan](https://avatars.githubusercontent.com/u/43207583?v=4)](https://github.com/manh-dan "manh-dan (14 commits)")

### Embed Badge

![Health badge](/badges/manhdan-microsoftgraph/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M982](/packages/statamic-cms)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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