PHPackages                             cicnavi/oidc-client-php - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. cicnavi/oidc-client-php

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

cicnavi/oidc-client-php
=======================

OIDC client written in PHP

v3.4.1(1w ago)81.9k↓61.9%MITPHPPHP ^8.2CI passing

Since Mar 24Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/cicnavi/oidc-client-php)[ Packagist](https://packagist.org/packages/cicnavi/oidc-client-php)[ RSS](/packages/cicnavi-oidc-client-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (6)Dependencies (48)Versions (23)Used By (0)

OIDC Client - PHP
=================

[](#oidc-client---php)

A PHP OpenID Connect Relying Party client for applications that need to authenticate users through an OpenID Provider using Authorization Code Flow.

It is built for practical OIDC integrations: provider discovery, JWKS key rotation, ID token validation, user claims extraction, `userinfo` fetching, PKCE, Pushed Authorization Requests, RP-Initiated and Back-Channel Logout, and cache-backed metadata/key handling are included.

What It Supports
----------------

[](#what-it-supports)

- Pre-registered OIDC clients with an existing client ID and secret
- Federated clients using OpenID Federation automatic client registration
- Dynamic Client Registration for providers that support it
- Authorization Code Flow with state, nonce, PKCE, ID token validation, and user data fetching
- JWKS discovery, public key rollover, and file-based caching by default
- RP-Initiated and Back-Channel Logout

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

[](#installation)

```
composer require cicnavi/oidc-client-php
```

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

[](#getting-started)

Choose the setup that matches your OpenID Provider:

- [Pre-registered Client](docs/2-Pre-Registered-Client.md) - use this when your client is already registered with the provider.
- [Federated Client](docs/3-Federated-Client.md) - use this in OpenID Federation environments.
- [Dynamically Registered Client](docs/4-Dynamically-Registered-Client.md) - use this when the provider supports Dynamic Client Registration.

For prerequisites, examples, SameSite cookie notes, and testing instructions, see the [full documentation](docs/1-Index.md).

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance93

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity75

Established project with proven stability

 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

Every ~115 days

Recently: every ~13 days

Total

18

Last Release

11d ago

Major Versions

v1.3.3 → v2.0.02021-08-19

v2.0.2 → v3.0.02026-02-12

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

v3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/26a25e71650f20493572747eabd3c68ab1188536634b6468888296340e2dda14?d=identicon)[cicnavi](/maintainers/cicnavi)

---

Top Contributors

[![cicnavi](https://avatars.githubusercontent.com/u/3176844?v=4)](https://github.com/cicnavi "cicnavi (76 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cicnavi-oidc-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/cicnavi-oidc-client-php/health.svg)](https://phpackages.com/packages/cicnavi-oidc-client-php)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k19](/packages/tempest-framework)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[cakephp/cakephp

The CakePHP framework

8.9k20.0M1.8k](/packages/cakephp-cakephp)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M650](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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