1. Go to this page and download the library: Download track-any-device/sso-server 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/ */
track-any-device / sso-server example snippets
// routes/web.php or routes/auth.php
use TrackAnyDevice\SsoServer\SsoServer;
Route::middleware(['web'])->group(function () {
SsoServer::routes();
// Registers: GET oauth/authorize → OAuthAuthorizeController (oauth.authorize)
});
// routes/api.php
use TrackAnyDevice\SsoServer\SsoServer;
Route::middleware(['auth:api'])->group(function () {
SsoServer::apiRoutes();
// Registers: GET api/sso/user → SsoUserController (sso.user)
});