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 3w ago

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

31

—

LowBetter than 66% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity25

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

2032d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2186506?v=4)[Diego SIlveira Mota](/maintainers/diegosm)[@diegosm](https://github.com/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

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

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

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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