PHPackages                             raegmaen/openid-connect-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. raegmaen/openid-connect-php

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

raegmaen/openid-connect-php
===========================

OpenID Connect client

0.2.1(7y ago)319.5k1[1 issues](https://github.com/raegmaen/OpenID-Connect-PHP/issues)Apache-2.0PHPPHP &gt;=5.6

Since Aug 7Pushed 7y agoCompare

[ Source](https://github.com/raegmaen/OpenID-Connect-PHP)[ Packagist](https://packagist.org/packages/raegmaen/openid-connect-php)[ RSS](/packages/raegmaen-openid-connect-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (7)Used By (0)

PHP OpenID Connect Client
=========================

[](#php-openid-connect-client)

PHP library to authenticate users against an identity provider using the [OpenId Connect protocol](http://openid.net/specs/openid-connect-core-1_0.html).
Use cases implemented:

1. [Authentication using the Authorization Code Flow](http://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth)
2. Refreshing access token with refresh token

Requirements
------------

[](#requirements)

1. PHP 5.6 or greater
2. CURL extension
3. JSON extension

Install
-------

[](#install)

Composer

```
composer require raegmaen/openid-connect-php

```

License
-------

[](#license)

[Apache License, Version 2.0](/LICENSE.txt)

Example:
--------

[](#example)

```
$openIdConnectClient = OpenIdConnectFactory::create(
    $providerUrl,
    $clientId,
    $clientSecret,
    $callbackUrl
);

$authenticationResult = $this->openIdConnectClient->authenticate($requestData);
if ($authenticationResult instanceof UserRedirect) {
    // Redirect user to given Url
}

$claims = $authenticationResult->getIdToken()->getClaims();

$name = $claims->get('given_name');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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 ~157 days

Total

4

Last Release

2726d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5007631?v=4)[Daniel Steinhauer](/maintainers/raegmaen)[@raegmaen](https://github.com/raegmaen)

### Embed Badge

![Health badge](/badges/raegmaen-openid-connect-php/health.svg)

```
[![Health](https://phpackages.com/badges/raegmaen-openid-connect-php/health.svg)](https://phpackages.com/packages/raegmaen-openid-connect-php)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[jumbojett/openid-connect-php

Bare-bones OpenID Connect client

7169.8M38](/packages/jumbojett-openid-connect-php)[jasny/sso

Simple Single Sign-On

1.5k255.9k6](/packages/jasny-sso)[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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