PHPackages                             linfaservice/spid-cie-oidc-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. linfaservice/spid-cie-oidc-php

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

linfaservice/spid-cie-oidc-php
==============================

SPID CIE OIDC PHP

v0.3.0(4y ago)2158[9 issues](https://github.com/italia/spid-cie-oidc-php/issues)[2 PRs](https://github.com/italia/spid-cie-oidc-php/pulls)Apache-2.0PHPPHP ~7.4.1

Since Apr 11Pushed 1y ago8 watchersCompare

[ Source](https://github.com/italia/spid-cie-oidc-php)[ Packagist](https://packagist.org/packages/linfaservice/spid-cie-oidc-php)[ RSS](/packages/linfaservice-spid-cie-oidc-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (21)Versions (3)Used By (0)

SPID/CIE OIDC Federation Relying Party for PHP
==============================================

[](#spidcie-oidc-federation-relying-party-for-php)

[![spid-cie-oidc-php CI](https://github.com/italia/spid-cie-oidc-php/workflows/Setup%20Check%20CI/badge.svg)](https://github.com/italia/spid-cie-oidc-php/workflows/Setup%20Check%20CI/badge.svg)[![badge](https://camo.githubusercontent.com/c4add76f49fe44f5c3d10b4aa24232892f587d495882399d8f4410a87937c599/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f676973742e67697468756275736572636f6e74656e742e636f6d2f64616d696b61656c2f66363938323138306364393837326166623739373566333835323463633137372f7261772f737069642d6369652d6f6964632d7068702d64796e616d69632d636f64652d636f7665726167652d62616467652e6a736f6e)](https://camo.githubusercontent.com/c4add76f49fe44f5c3d10b4aa24232892f587d495882399d8f4410a87937c599/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f676973742e67697468756275736572636f6e74656e742e636f6d2f64616d696b61656c2f66363938323138306364393837326166623739373566333835323463633137372f7261772f737069642d6369652d6f6964632d7068702d64796e616d69632d636f64652d636f7665726167652d62616467652e6a736f6e)[![Apache license](https://camo.githubusercontent.com/6056c91dbbc59a4c8523f4420a1b6a63278c01b148278f3a643ea3346c335242/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322d626c75652e737667)](https://camo.githubusercontent.com/6056c91dbbc59a4c8523f4420a1b6a63278c01b148278f3a643ea3346c335242/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322d626c75652e737667)[![Get invited](https://camo.githubusercontent.com/90f3bb527b0d0731e5ae345ea34a3ab7ef763b78dd16a3208002eeefb9b08c8c/68747470733a2f2f736c61636b2e646576656c6f706572732e6974616c69612e69742f62616467652e737667)](https://slack.developers.italia.it/)[![Join the #spid openid](https://camo.githubusercontent.com/4746258a45c17d0c3eee5617ef2fc6a4180baebfc3792dfc520690bdbd032c5c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f536c61636b2532306368616e6e656c2d253233737069642532306f70656e69642d626c75652e737667)](https://developersitalia.slack.com/archives/C7E85ED1N/)

[![](doc/spid-cie-oidc-php.gif)](doc/spid-cie-oidc-php.gif)

The SPID/CIE OIDC Federation Relying Party for PHP

Summary
-------

[](#summary)

- [What is SPID/CIE OIDC PHP](#what-is-spidcie-oidc-php)
    - [PHP class library](https://italia.github.io/spid-cie-oidc-php/doc/phpdoc/)
    - [Standalone proxy relying party](doc/howto-proxy/README.md)
    - [Generic OIDC to SPID/CIE OIDC relying party](doc/howto-gateway/README.md)
- [Features](#features)
- [Setup](#setup)
- [Example projects](#example-projects)
    - [WordPress example project](doc/example-wordpress/README.md)
    - [Drupal example project](doc/example-drupal/README.md)
- [Contribute](#contribute)
    - [Contribute as end user](#contribute-as-end-user)
    - [Contribute as developer](#contribute-as-developer)
- [Useful links](#useful-links)
- [License and Authors](#license-and-authors)

What is SPID/CIE OIDC PHP
-------------------------

[](#what-is-spidcie-oidc-php)

SPID/CIE OIDC PHP is:

- **A PHP class library that helps to develop a relying party for SPID/CIE**
    Are you a Developer and you want to make your own relying party or a plugin for your software?
    Read the [Technical documentation](https://italia.github.io/spid-cie-oidc-php/doc/phpdoc/).
- **A standalone proxy relying party for SPID/CIE**
    You can simply setup the proxy project and configure the URL where to receive users's attributes. You can also choice how the attributes will be returned from the proxy, such as plain values, signed or encrypted.
    Read [How to use as a proxy](doc/howto-proxy/README.md).
- **A generic OIDC to SPID/CIE OIDC relying party gateway**
    Can your application connect to a standard OIDC Provider, but it doesn't have extended functionalities required by the SPID/CIE OIDC Federation? No problem, you can configure your client as a relying party to SPID/CIE OIDC PHP Provider and it will make the rest.
    Read [How to use as a generic OIDC Provider](doc/howto-gateway/README.md).

Features
--------

[](#features)

- Interactive setup
- Wizard for certificates generation
- Bootstrap template
- Hooks plugins
- Simple API
- Proxy functions
- Ready to use

Setup
-----

[](#setup)

```
git clone https://github.com/italia/spid-cie-oidc-php.git
composer install

```

After setup go to /*service\_name*/oidc/rp/authz where *service\_name* is the service name configured during setup.

Example projects
----------------

[](#example-projects)

Start the basic example project is as simple as run:

```
docker pull linfaservice/spid-cie-oidc-php
docker run -it -p 8002:80 -v $(pwd)/config:/var/www/spid-cie-oidc-php/config linfaservice/spid-cie-oidc-php

```

On the first run the setup will ask for configurations. All configurations will be saved in the ./config directory.

The repository also provides example projects to set up a complete SPID/CIE OIDC Federation.

Read how to set up a federation with the [WordPress Example Project](doc/example-wordpress/README.md).
Read how to set up a federation with the [Drupal Example Project](doc/example-drupal/README.md).

Contribute
----------

[](#contribute)

Your contribution is welcome, no question is useless and no answer is obvious, we need you.

#### Contribute as end user

[](#contribute-as-end-user)

Please open an issue if you've discoveerd a bug or if you want to ask some features.

#### Contribute as developer

[](#contribute-as-developer)

Please open your Pull Requests on the **dev** branch. Please consider the following branches:

- **main**: where we merge the code before tag a new stable release.
- **dev**: where we push our code during development.
- **other-custom-name**: where a new feature/contribution/bugfix will be handled, revisioned and then merged to dev branch.

In this project we adopt [Semver](https://semver.org/lang/it/) and [Conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) specifications.

Useful links
------------

[](#useful-links)

- [Openid Connect Federation](https://openid.net/specs/openid-connect-federation-1_0.html)
- [SPID/CIE OIDC Federation SDK](https://github.com/italia/spid-cie-oidc-django)

License and Authors
-------------------

[](#license-and-authors)

This software is released under the Apache 2 License by:

- Michele D'Amico (@damikael) .

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 99.1% 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

Unknown

Total

1

Last Release

1492d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64dc4fc2c42e44c8704b6f98ed202d970d04b85fcf123ef08e7bae925b1f8bab?d=identicon)[damikael](/maintainers/damikael)

---

Top Contributors

[![damikael](https://avatars.githubusercontent.com/u/31276401?v=4)](https://github.com/damikael "damikael (214 commits)")[![rglauco](https://avatars.githubusercontent.com/u/37829079?v=4)](https://github.com/rglauco "rglauco (2 commits)")

---

Tags

ciefederationoidc-clientphpspid

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/linfaservice-spid-cie-oidc-php/health.svg)

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

###  Alternatives

[spomky-labs/lexik-jose-bridge

Bridge to allow the use of web-token/jwt-framework with the Lexik JWT Authentication Bundle

35444.0k](/packages/spomky-labs-lexik-jose-bridge)

PHPackages © 2026

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