acsystems/keycloak-php-sdk

PHP wrapper for the KeyCloak admin API

1.0.0 2020-08-12 13:56 UTC

This package is auto-updated.

Last update: 2020-08-12 14:07:31 UTC


README

This package aims to wrap the Keycloak API and provide an easy and consistent layer for managing your keycloak realms.

License PHP Code Style

Documentation

Quick start

First create a KeycloakClient with your credentials.

$kcClient = new Keycloak\KeycloakClient(
    'my-client-id',
    'my-client-secret',
    'my-realm',
    'https://my-keycloak-base-url.com'
);

Then you can pass the client to any of the APIs.

$userApi = new Keycloak\User\Api($kcClient);
$allUsers = $userApi->findAll();

Tested platforms

These are the platforms which are officially supported by this package. Any other versions will probably work but is not guaranteed.

PlatformVersion
PHP7.3
Keycloak11

Contributing

Please read our contribution guidelines before contributing.