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 1w 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 27% 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

1594d ago

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

v1.0.2PHP &gt;=7.2

### Community

Maintainers

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

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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