PHP code example of tualo / msgraph-vfs

1. Go to this page and download the library: Download tualo/msgraph-vfs 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/ */

    

tualo / msgraph-vfs example snippets


Tualo\Office\Basic\TualoApplication::set('configuration', [
	'msgraph-vfs' => [
		'scheme' => 'sharepoint',
		'driveId' => 'b!1234567890',
	],
]);

$content = file_get_contents('sharepoint://Dokumente/Beispiel.txt');
file_put_contents('sharepoint://Dokumente/Neu.txt', 'Hallo SharePoint');

$driveId = msgraph_vfs_drive_id();
$siteId = msgraph_vfs_site_id();