logicpanel/keycloak-php-sdk
最新稳定版本:0.0.1
Composer 安装命令:
composer require logicpanel/keycloak-php-sdk
包简介
PHP wrapper for the KeyCloak admin API
README 文档
README
This package aims to wrap the Keycloak API and provide an easy and consistent layer for managing your keycloak realms.
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' );
Or use a admin user credentials.
$kcClient = new Keycloak\KeycloakPasswordClient( 'my-realm', 'https://my-keycloak-base-url.com', 'username', 'password' );
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.
| Platform | Version |
|---|---|
| PHP | 7.3 |
| Keycloak | 11 |
Contributing
Please read our contribution guidelines before contributing.
统计信息
- 总下载量: 1.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-01