PHP code example of aetah / oidc-http-based-logout

1. Go to this page and download the library: Download aetah/oidc-http-based-logout 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/ */

    

aetah / oidc-http-based-logout example snippets




declare(strict_types=1);

use Aetah\OIDCHttpBasedLogout\OIDCHttpBasedLogout;

$logout = new OIDCHttpBasedLogout();

$request = $logout->parseEndSessionRequest($_GET);
$logout->validateEndSessionRequest($request, ['https://rp.example/post-logout']);
bash
composer analyse
bash
composer clean