cicnavi/oidc-client-php

OIDC client written in PHP

Maintainers

Package info

github.com/cicnavi/oidc-client-php

pkg:composer/cicnavi/oidc-client-php

Transparency log

Statistics

Installs: 1 838

Dependents: 0

Suggesters: 0

Stars: 8

Open Issues: 0

v3.4.0 2026-07-04 12:33 UTC

README

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

  • 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

composer require cicnavi/oidc-client-php

Getting Started

Choose the setup that matches your OpenID Provider:

For prerequisites, examples, SameSite cookie notes, and testing instructions, see the full documentation.