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.5k1MITPHPPHP &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 today

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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

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

1899d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M222](/packages/backpack-crud)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.7M18](/packages/xeroapi-xero-php-oauth2)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)

PHPackages © 2026

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