PHP code example of diegosm / keycloak-admin
1. Go to this page and download the library: Download diegosm/keycloak-admin 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/ */
diegosm / keycloak-admin example snippets
$keycloakAdmin = KeycloakAdminFactory::create(
$username, // your confidential client name
$password, // the client secret
$url // default root url like http://keycloak:8080/auth
);