logicpanel/keycloak-php-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

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'
);

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.45k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-01