1. Go to this page and download the library: Download mapo-89/core-panel 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/ */
mapo-89 / core-panel example snippets
$result = app(\CorePanel\Support\Socialite\MicrosoftAccessTokenResolver::class)
->forUser($user);
if ($result['token'] !== null) {
// Use this token for the next Graph request.
}