PHPackages                             logicpanel/keycloak-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. logicpanel/keycloak-php-sdk

ActiveLibrary[Admin Panels](/categories/admin)

logicpanel/keycloak-php-sdk
===========================

PHP wrapper for the KeyCloak admin API

0.0.1(5y ago)41.4k1MITPHPPHP &gt;=7.3

Since Apr 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/logicpanel/keycloak-php-sdk)[ Packagist](https://packagist.org/packages/logicpanel/keycloak-php-sdk)[ RSS](/packages/logicpanel-keycloak-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Keycloak PHP SDK
================

[](#keycloak-php-sdk)

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

[![License](https://camo.githubusercontent.com/88e1dabf4d223df0950e0985948e231325fefca9fa7fe9e446cf8b1c5e9d9e47/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e)](https://camo.githubusercontent.com/88e1dabf4d223df0950e0985948e231325fefca9fa7fe9e446cf8b1c5e9d9e47/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e)[![PHP](https://camo.githubusercontent.com/fd3b2a0368dbdecaa0b7f526dcfc55571b73140963b73860f7e354634c4a7dea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2533432532462533452d504850253230372e332d626c7565)](https://www.php.net/)[![Code Style](https://camo.githubusercontent.com/9942f05b5e90d789890c18c55d82b24eb32c07cc2effcda8735ab33fadf6a3d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d7073722d2d322d6461726b677265656e)](https://www.php-fig.org/psr/psr-2/)

Documentation
-------------

[](#documentation)

### Quick start

[](#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

[](#tested-platforms)

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

PlatformVersionPHP7.3Keycloak11### Contributing

[](#contributing)

Please read our [contribution guidelines](./CONTRIBUTING.md) before contributing.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1853d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1074d78a13921da2256ec326f04f0d235751da6474ef786e7dbdbf78f930030c?d=identicon)[logicpanel](/maintainers/logicpanel)

---

Top Contributors

[![WilliamPeralta](https://avatars.githubusercontent.com/u/5525164?v=4)](https://github.com/WilliamPeralta "WilliamPeralta (7 commits)")

---

Tags

sdkadminkeycloakidentity server

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/logicpanel-keycloak-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/logicpanel-keycloak-php-sdk/health.svg)](https://phpackages.com/packages/logicpanel-keycloak-php-sdk)
```

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.3M14](/packages/xeroapi-xero-php-oauth2)[kunstmaan/admin-bundle

The Kunstmaan Admin bundle supplies your project with a basic, elegant backend interface you can modify and extend so you can make your perfect admin module. The clean interface makes it straightforward for you and the people working with it to change settings and modify content.

58149.5k20](/packages/kunstmaan-admin-bundle)[tatter/firebase

Firebase integration for CodeIgniter 4

298.2k](/packages/tatter-firebase)[bpocallaghan/titan

Core framework for laravel projects (Laravel Admin Starter).

5811.2k1](/packages/bpocallaghan-titan)[quarkcms/quark-admin

quark-admin

1691.0k1](/packages/quarkcms-quark-admin)[rockys/ex-admin-ui

基于Ant Design of Vue 的PHP通用前端渲染框架Ex-admin UI

254.6k4](/packages/rockys-ex-admin-ui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
