PHPackages                             spaanproductions/office365-laravel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. spaanproductions/office365-laravel

ActivePackage[Utility &amp; Helpers](/categories/utility)

spaanproductions/office365-laravel
==================================

A Office365 package for Laravel 9.0 or higher

v0.0.4(3y ago)113MITPHPPHP &gt;=8.0

Since Dec 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/spaanproductions/office365-laravel)[ Packagist](https://packagist.org/packages/spaanproductions/office365-laravel)[ Docs](https://github.com/spaanproductions/office365-laravel)[ RSS](/packages/spaanproductions-office365-laravel/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Office365
-----------------

[](#laravel-office365)

A Office365 package for Laravel 9.0 or higher

Installation
------------

[](#installation)

```
composer require spaanproductions/office365-laravel

```

This package wil register this ServiceProvider automatically in Laravel.

```
SpaanProductions\Office365\Office365ServiceProvider::class,

```

You can optionaly publish the config files.

```
php artisan vendor:publish --provider="SpaanProductions\Office365\Office365ServiceProvider"

```

Get your app id and secret from [Application Registration Portal](https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)

Then put them in the **environment** file

```
OFFICE365_TENANT_ID=
OFFICE365_CLIENT_ID=
OFFICE365_CLIENT_SECRET=
OFFICE365_OBJECT_ID=
OFFICE365_REDIRECT_URI=http://localhost:8000/redirect
OFFICE365_SCOPES='openid profile offline_access User.Read Mail.Read'

```

Example Usage
-------------

[](#example-usage)

```
