PHPackages                             diegosm/keycloak-admin - 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. [API Development](/categories/api)
4. /
5. diegosm/keycloak-admin

ActiveLibrary[API Development](/categories/api)

diegosm/keycloak-admin
======================

PHP Library for Keycloak REST API management

v1.6.0(5y ago)72.2k3[1 issues](https://github.com/diegosm/keycloak-admin/issues)MITPHPPHP ^7.1CI failing

Since Apr 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/diegosm/keycloak-admin)[ Packagist](https://packagist.org/packages/diegosm/keycloak-admin)[ RSS](/packages/diegosm-keycloak-admin/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (20)Used By (0)

keycloak-admin
==============

[](#keycloak-admin)

PHP Library for Keycloak Rest API management

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

[](#documentation)

The documentation of this project is available at

Installation
------------

[](#installation)

```
composer require diegosm/keycloak-admin
```

Configure
---------

[](#configure)

First of all create a client on master realm, with name like `manager-cli` of type `confidential` and need to enable Service Accounts. You will use to manage your realm, and log in with client\_credential grant type.

There have a factory for create keycloakadmin, put there your configuration:

```
$keycloakAdmin = KeycloakAdminFactory::create(
    $username, // your confidential client name
    $password, // the client secret
    $url // default root url like http://keycloak:8080/auth
);
```

To do list (Not ordered by priority)
------------------------------------

[](#to-do-list-not-ordered-by-priority)

1. Create role composites
2. Review and make tests for all exceptions.
3. Make realm extra endpoints (i.e. clear sessions).
4. Change User access from array to a Class.

Create representation classes

---

1. AuthenticationFlowRepresentation (could be used on realm)
2. AuthenticatorConfigRepresentation (could be used on realm)
3. ClientScopeRepresentation (could be used on realm)
4. IdentityProviderMapperRepresentation (could be used on realm)
5. UserFederationMappers (could be used on realm)

---

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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

Every ~13 days

Recently: every ~58 days

Total

19

Last Release

1978d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89ac7bef902f84faca39177c1e5ef668e0cc42554b94409823421c5874b788a5?d=identicon)[diegosm](/maintainers/diegosm)

---

Top Contributors

[![diegosm](https://avatars.githubusercontent.com/u/2186506?v=4)](https://github.com/diegosm "diegosm (33 commits)")[![antonkomarev](https://avatars.githubusercontent.com/u/1849174?v=4)](https://github.com/antonkomarev "antonkomarev (3 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/diegosm-keycloak-admin/health.svg)

```
[![Health](https://phpackages.com/badges/diegosm-keycloak-admin/health.svg)](https://phpackages.com/packages/diegosm-keycloak-admin)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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