PHP code example of openseawave / keycloak
1. Go to this page and download the library: Download openseawave/keycloak 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/ */
openseawave / keycloak example snippets
use Openseawave\Keycloak\Keycloak;
$keycloak = new Keycloak(
baseUrl: 'http://localhost:8080/auth',
username: 'admin',
password: 'admin',
);
$keycloak->getUsers();
use Openseawave\Keycloak\Facades\Keycloak;
Keycloak::getUsers();
bash
php artisan vendor:publish --tag="keycloak-config"