PHP code example of manhdan / microsoftgraph
1. Go to this page and download the library: Download manhdan/microsoftgraph 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/ */
manhdan / microsoftgraph example snippets
use Manhdan\Microsoft\Graph\Graph;
class ManhDanExample
{
public function run()
{
$graph = new Graph();
return $graph->withHeaders(['X-First' => 'foo'])->get('/users');
}
}
use Manhdan\Microsoft\Graph\Graph;
class ManhDanExample
{
public function run()
{
$graph = new Graph();
return $graph->withHeaders(['X-First' => 'foo'])->onVersion('beta')->get('/users');
}
}
php artisan vendor:publish --tag=microsoftgraph-config