PHPackages                             nl.idaas/openid-server - 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. nl.idaas/openid-server

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

nl.idaas/openid-server
======================

OpenID Connect server for PHP

v0.4.3(3mo ago)47136.1k↓48.4%11[5 issues](https://github.com/arietimmerman/openid-server/issues)[3 PRs](https://github.com/arietimmerman/openid-server/pulls)1LGPL-3.0-onlyPHPCI failing

Since Feb 8Pushed 3mo ago5 watchersCompare

[ Source](https://github.com/arietimmerman/openid-server)[ Packagist](https://packagist.org/packages/nl.idaas/openid-server)[ RSS](/packages/nlidaas-openid-server/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (10)Versions (36)Used By (1)

[![](https://github.com/arietimmerman/openid-server/workflows/CI/badge.svg)](https://github.com/arietimmerman/openid-server/workflows/CI/badge.svg)[![](https://camo.githubusercontent.com/a8f3d5bc3180299feed0a40051557f0e10e9309a814f37bf96889dc7903b6c97/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4147504c2d2d332e302d677265656e)](https://camo.githubusercontent.com/a8f3d5bc3180299feed0a40051557f0e10e9309a814f37bf96889dc7903b6c97/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4147504c2d2d332e302d677265656e)[![Latest Stable Version](https://camo.githubusercontent.com/1f94bcbd22f3eafbb1d91f02056a6421c89ea9c4d100fb464ac9e8009b25f19d/68747470733a2f2f706f7365722e707567782e6f72672f6e6c2e69646161732f6f70656e69642d7365727665722f762f737461626c65)](https://packagist.org/packages/nl.idaas/openid-server)[![Total Downloads](https://camo.githubusercontent.com/9a69f141e0e4f4f7afb5c6d683b4d6771f73705b0e7f116652976d910fd36270/68747470733a2f2f706f7365722e707567782e6f72672f6e6c2e69646161732f6f70656e69642d7365727665722f646f776e6c6f616473)](https://packagist.org/packages/nl.idaas/openid-server)

PHP OpenID Connect Server
=========================

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

This is an OpenID Connect Server written in PHP, built on top of [thephpleague/oauth2-server](https://github.com/thephpleague/oauth2-server).

It is used by [idaas.nl](https://www.idaas.nl/): (not) yet another identity as a service platform.

This library supports everything that is supported by `thephpleague/oauth2-server`, plus the following specifications

- [OpenID Connect Core](https://openid.net/specs/openid-connect-core-1_0.html)

This library was created by [Arie Timmerman](https://github.com/arietimmerman).

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

[](#installation)

```
composer require nl.idaas/openid-server

```

Example
-------

[](#example)

This example implements show how to implement an authorization server with support for an authorization grant, including OpenID Connect support.

```
// Init our repositories
$scopeRepository = new ScopeRepository(); // instance of ScopeRepositoryInterface
$authCodeRepository = new AuthCodeRepository(); // instance of AuthCodeRepositoryInterface
$refreshTokenRepository = new RefreshTokenRepository(); // instance of RefreshTokenRepositoryInterface

// Specific to this module
$clientRepository = new ClientRepository(); // instance of \Idaas\OpenID\Repositories\ClientRepositoryInterface
$accessTokenRepository = new AccessTokenRepository(); // instance of \Idaas\OpenID\Repositories\AccessTokenRepositoryInterface
$claimRepository = new ClaimRepository(); // instance of ClaimRepositoryInterface

$privateKey = 'file://path/to/private.key';
//$privateKey = new CryptKey('file://path/to/private.key', 'passphrase'); // if private key has a pass phrase
$encryptionKey = 'lxZFUEsBCJ2Yb14IF2ygAHI5N4+ZAUXXaSeeJm6+twsUmIen'; // generate using base64_encode(random_bytes(32))

// Setup the authorization server
$server = new \League\OAuth2\Server\AuthorizationServer(
    $clientRepository,
    $accessTokenRepository,
    $scopeRepository,
    $privateKey,
    $encryptionKey
);

// OpenID Connect Authorization Code Grant
$grant = new \Idaas\OpenID\Grant\AuthCodeGrant(
    $authCodeRepository,
    $refreshTokenRepository,
    $claimRepository,
    new \Idaas\OpenID\Session,
    new DateInterval('PT10M'), // authorization codes will expire after 10 minutes
    new DateInterval('PT10M') // ID Token will expire after 10 minutes
);

$grant->setRefreshTokenTTL(new \DateInterval('P1M')); // refresh tokens will expire after 1 month

// Enable the authentication code grant on the server
$server->enableGrantType(
    $grant,
    new \DateInterval('PT1H') // access tokens will expire after 1 hour
);
```

Usages
------

[](#usages)

- [Laravel OpenID Connect Server](https://github.com/arietimmerman/laravel-openid-connect-server)

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance76

Regular maintenance activity

Popularity46

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.9% 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 ~99 days

Recently: every ~233 days

Total

23

Last Release

117d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/957298e7676d3a0e0fc0836e1374738ef5c407884f6b1b2e8c7998e27e4667d0?d=identicon)[arietimmerman](/maintainers/arietimmerman)

---

Top Contributors

[![arietimmerman](https://avatars.githubusercontent.com/u/2026675?v=4)](https://github.com/arietimmerman "arietimmerman (59 commits)")[![RobertMe](https://avatars.githubusercontent.com/u/1102763?v=4)](https://github.com/RobertMe "RobertMe (10 commits)")[![flh](https://avatars.githubusercontent.com/u/129180?v=4)](https://github.com/flh "flh (2 commits)")[![omitobi](https://avatars.githubusercontent.com/u/16482234?v=4)](https://github.com/omitobi "omitobi (1 commits)")

---

Tags

oauth2oauth2-serveropenid-connectopenid-connect-providerphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nlidaas-openid-server/health.svg)

```
[![Health](https://phpackages.com/badges/nlidaas-openid-server/health.svg)](https://phpackages.com/packages/nlidaas-openid-server)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

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

Shopware platform is the core for all Shopware ecommerce products.

585.4M506](/packages/shopware-core)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k16.8k](/packages/prestashop-prestashop)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

58403.6k8](/packages/jeremy379-laravel-openid-connect)[simplesamlphp/saml2

SAML2 PHP library from SimpleSAMLphp

30417.8M41](/packages/simplesamlphp-saml2)[contao/core-bundle

Contao Open Source CMS

1231.6M2.6k](/packages/contao-core-bundle)

PHPackages © 2026

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