PHP code example of miguel_costa / office365api

1. Go to this page and download the library: Download miguel_costa/office365api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

miguel_costa / office365api example snippets

 php
Miguel_Costa\Office365API\Office365APIServiceProvider::class,
 bash
$ php artisan vendor:publish
 php
//use the namespace corretly on your controller
use Miguel_Costa\Office365API\ConnectAPI;

//example of function to make the connection
public function redirect_connect() {
ConnectAPI::connect_officeAPI();
}

//get the connection and redirect the user to the intended page
public function get_connection() {
ConnectAPI::get_connection();
return view('home');
}