overtrue / keycloak-admin
PHP client for the Keycloak Admin API
dev-master
2025-02-18 05:42 UTC
Requires
- php: >=8.4
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- php-di/phpdoc-reader: ^2.1
Requires (Dev)
- fakerphp/faker: ^1.24
- laravel/dusk: ^8.3
- laravel/pint: ^1.20
- phpunit/phpunit: ^12.0.2
- symfony/filesystem: ^6.0
- symfony/finder: ^6.0
This package is auto-updated.
Last update: 2025-02-18 05:43:00 UTC
README
This project is based on the open-source project scito-performance/keycloak-admin .
Installation
composer require overtrue/keycloak-admin
Usage
$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();
Integration with Laravel
overtrue/laravel-keycloak-admin
License
MIT