PHPackages                             jinna/keycloakapiservices - 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. jinna/keycloakapiservices

ActiveLibrary[API Development](/categories/api)

jinna/keycloakapiservices
=========================

This is for keycloak rest api services

03PHP

Since Apr 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mohamedali850/keycloakadminapi)[ Packagist](https://packagist.org/packages/jinna/keycloakapiservices)[ RSS](/packages/jinna-keycloakapiservices/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![iSportz](https://camo.githubusercontent.com/b3e77867d22492065c0cada4873a2302fa6dcc7e761975851348bf82b123063e/68747470733a2f2f6973706f72747a2e636f2f77702d636f6e74656e742f75706c6f6164732f323032312f30312f6973706f72747a2d6c6f676f2e706e67)](https://camo.githubusercontent.com/b3e77867d22492065c0cada4873a2302fa6dcc7e761975851348bf82b123063e/68747470733a2f2f6973706f72747a2e636f2f77702d636f6e74656e742f75706c6f6164732f323032312f30312f6973706f72747a2d6c6f676f2e706e67)[![iSportz](https://camo.githubusercontent.com/a0a2b2072e2dfca35d9c985e6d3e66e99038a3cc271b7695e6fa9dd4efb1fa58/68747470733a2f2f6465762d617574682e6973706f72747a2e636f2f7265736f75726365732f6e713464752f61646d696e2f6b6579636c6f616b2e76322f6c6f676f2e737667)](https://camo.githubusercontent.com/a0a2b2072e2dfca35d9c985e6d3e66e99038a3cc271b7695e6fa9dd4efb1fa58/68747470733a2f2f6465762d617574682e6973706f72747a2e636f2f7265736f75726365732f6e713464752f61646d696e2f6b6579636c6f616b2e76322f6c6f676f2e737667)

Platformization Keycloak REST API Service
=========================================

[](#platformization-keycloak-rest-api-service)

Platformization Keycloak is a Laravel package that gives you access to keycloak's admin REST APIs.

For API references visit [Keycloak Admin REST API](https://www.keycloak.org/docs-api/15.0/rest-api/index.html), To understand Keycloak Administration refer [Server Administration Guide](https://www.keycloak.org/docs/latest/server_admin/index.html).

Getting Started
---------------

[](#getting-started)

### Installation

[](#installation)

Keycloak admin API requires

PHP &gt;= 8.0

Laravel &gt;= 9.0

Guzzlehttp &gt;= 7.2

Keycloakapiservices package require below dependency packages.

```
    "require": {
        "php": "^8.0",
        "laravel/framework": "^9.0",
        "guzzlehttp/guzzle": "^7.2"
    },
```

Run the below command to install the package.

```
composer require jinna/keycloakapiservices

```

Publish the keycloakapi config file using `php artisan vendor:publish --provider="KeycloakApiServices\KeycloakApiServiceProvider" --tag="config"`, A config file `keycloakapiservices.php` will be created in `config` folder

Add `KeycloakApiServices\KeycloakApiServiceProvider::class` in `config/app.php` file, at the end of `'providers' => []` array like below.

```
'providers' => [
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,
        KeycloakApiServices\KeycloakApiServiceProvider::class
    ],
```

Add the below code in `app/Providers/RouteServiceProvider.php` file inside `boot()` method's `$this->routes(function () {})` group like below.

```
    public function boot()
    {
        $this->configureRateLimiting();
        $this->routes(function () {
            Route::prefix('api')
                ->middleware('api')
                ->namespace($this->namespace)
                ->group(base_path('vendor/jinna/keycloakapiservices/src/routes/api.php'));
        });
    }
```

Add/config the below variables in your `.env` file with appropriate values.

```
//Keycloak Server Url
KEYCLOAK_BASE_URL="https://keycloakauth.yourdomain.com"
KEYCLOAK_REALM_ENDPOINT=/admin/realms
KEYCLOAK_CLIENTS_ENDPOINT=/clients
KEYCLOAK_ROLES_ENDPOINT=/roles
KEYCLOAK_ADMIN_CLIENT_ID=admin-cli
KEYCLOAK_ADMIN_USERNAME=keycloakadminusername
KEYCLOAK_ADMIN_PASSWORD="keycloakadminpassword"

```

### Documentation

[](#documentation)

### Basic Usage

[](#basic-usage)

Refer the Postman collection `Platform KeyCloak API.postman_collection` which you can find inside this package folder.

License
-------

[](#license)

Platformization Keycloak REST API Service is owned by iSportz . Reach out [`LICENSE`](https://isportz.co/contact-us/) for more details.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e1e52e5e63d81043e707f9f5e06e017a75f867332092075661c6dbf271b7e77?d=identicon)[mohamedali850](/maintainers/mohamedali850)

---

Top Contributors

[![mohamedali850](https://avatars.githubusercontent.com/u/49872371?v=4)](https://github.com/mohamedali850 "mohamedali850 (10 commits)")

### Embed Badge

![Health badge](/badges/jinna-keycloakapiservices/health.svg)

```
[![Health](https://phpackages.com/badges/jinna-keycloakapiservices/health.svg)](https://phpackages.com/packages/jinna-keycloakapiservices)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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