使用 Microsoft Graph 生成 PHP 应用

本教程向您介绍如何构建 PHP web 应用程序,该应用程序使用 Microsoft Graph API 检索用户的日历信息。This tutorial teaches you how to build a PHP web app that uses the Microsoft Graph API to retrieve calendar information for a user.

提示

如果您只想下载已完成的教程,可以通过两种方式下载它。If you prefer to just download the completed tutorial, you can download it in two ways.

先决条件Prerequisites

在开始本教程之前,您应在开发计算机上安装了 PHP作曲者和 LaravelBefore you start this tutorial, you should have PHP, Composer, and Laravel installed on your development machine.

您还应具有一个个人的 Microsoft 帐户,其中包含 Outlook.com 上的邮箱,或 Microsoft 工作或学校帐户。You should also have either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account. 如果你没有 Microsoft 帐户,可以使用以下几种方法获取免费帐户:If you don't have a Microsoft account, there are a couple of options to get a free account:

备注

本教程使用 PHP 版本7.4.4、书写器版本1.10.10 和 Laravel installer 版本(3.2.0)编写。This tutorial was written with PHP version 7.4.4, Composer version 1.10.10, and Laravel installer version 3.2.0. 本指南中的步骤可能适用于其他版本,但尚未经过测试。The steps in this guide may work with other versions, but that has not been tested.

反馈Feedback

请在 GitHub 存储库中提供有关本教程的任何反馈。Please provide any feedback on this tutorial in the GitHub repository.