manhdan/microsoftgraph 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

manhdan/microsoftgraph

Composer 安装命令:

composer require manhdan/microsoftgraph

包简介

Microsoftgraph - A simple Laravel package.

README 文档

README

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: https://docs.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0

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

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

Call Microsoft Graph using the v1.0 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

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 (c) ManhDanBlogs Corporation. All Rights Reserved. Licensed under the MIT [license].

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固