scito / keycloak-admin
There is no license information available for the latest version (1.1.0) of this package.
PHP client for the Keycloak Admin API
1.1.0
2024-12-20 08:14 UTC
Requires
- php: >=8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- php-di/phpdoc-reader: ^2.1
Requires (Dev)
- fakerphp/faker: ^1.24
- laravel/dusk: ^6.0
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.4
- symfony/filesystem: ^4.3@dev
- symfony/finder: ^4.3@dev
README
Basic usage example
$client = (new ClientBuilder())
->withServerUrl($server)
->withRealm($realm)
->withClientId($clientId)
->withUsername($keycloakUsername)
->withPassword($keycloakPassword)
->build();
// Add a user
$client->realm('master')
->users()
->create()
->username($username)
->password($password)
->email($email)
->save();