PHPackages                             cwssrl/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. cwssrl/office365-laravel

ActivePackage

cwssrl/office365-laravel
========================

A Office365 package for Laravel 5.2 or higher

v1.0.0(2d ago)03↑2900%MITPHPPHP &gt;=5.6.0

Since Aug 22Pushed todayCompare

[ Source](https://github.com/cwssrl/office365-Laravel)[ Packagist](https://packagist.org/packages/cwssrl/office365-laravel)[ RSS](/packages/cwssrl-office365-laravel/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

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

[](#laravel-office365)

A Office365 package for Laravel 5.2 or higher

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

[](#installation)

```
composer require cwssrl/office365-laravel

```

After install this package you have to set the service provider on your config/app.php file

```
Cwssrl\Office365\ServiceProvider::class,

```

To use the facade add this to the facades in app/config/app.php

```
'Office365' => Cwssrl\Office365\Facade\Office365::class,

```

Then you just need to publish files ! Copy and paste it

```
php artisan vendor:publish --provider="Cwssrl\Office365\ServiceProvider"

```

Get your app id and secret from [Application Registration Portal](https://apps.dev.microsoft.com) then put it in **Environment** file

```
OFFICE365_APP_ID=

OFFICE365_SECRET_APP_KEY=

OFFICE365_REDIRECT_URI=http://localhost:8000/redirect

OFFICE365_SCOPES='openid profile offline_access User.Read Mail.Read'

```

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

[](#example-usage)

```
