1. Go to this page and download the library: Download autokz/oauth_proxy 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/ */
autokz / oauth_proxy example snippets
$converter = new JWTConverter();
$configStorage = new DotEnvConfigStorage(__DIR__ . '/../'); // Path to .env file
$configStorage->load();
// Optional variable - Http client
$httpClient = new CurlHttpClient();
$proxy = new Proxy($converter, $configStore, $httpClient);