PHPackages                             rediris-es/simplesamlphp-module-papi - 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. rediris-es/simplesamlphp-module-papi

ActiveSimplesamlphp-module[Authentication &amp; Authorization](/categories/authentication)

rediris-es/simplesamlphp-module-papi
====================================

A SimpleSAMLphp module adding support for the PAPI protocol.

v1.0(10y ago)116.3k[1 issues](https://github.com/rediris-es/simplesamlphp-module-papi/issues)PHP

Since Mar 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rediris-es/simplesamlphp-module-papi)[ Packagist](https://packagist.org/packages/rediris-es/simplesamlphp-module-papi)[ RSS](/packages/rediris-es-simplesamlphp-module-papi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

PAPI module
===========

[](#papi-module)

The *papi* module provides a single authentication module:

- `papi:PAPI`: authenticate using the **PAPI** protocol.

This authentication module makes use of an external library, [*phpPoA*](https://forja.rediris.es/projects/phppoa/), in order to authenticate users by means of the PAPI protocol. It can therefore be used to bridge between protocols, behaving like a PAPI *Point of Access* or as a *Service Provider*.

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

[](#installation)

Once you have installed SimpleSAMLphp, installing this module is very simple. Just execute the following command in the root of your SimpleSAMLphp installation:

```
composer.phar require rediris-es/simplesamlphp-module-papi:dev-master

```

where `dev-master` instructs Composer to install the `master` branch from the Git repository. See the [releases](https://github.com/rediris-es/simplesamlphp-module-papi/releases) available if you want to use a stable version of the module.

Usage
-----

[](#usage)

To use this module, enable it by creating a file named `enable` in the `modules/papi/` directory. Then you need to add an authentication source which makes use of the `papi:PAPI` module to the `config/authsources.php` file:

```
    'example-papi' => array(
        'papi:PAPI',

        /*
         * The site identifier that allows the module to determine which
         * configuration of the phpPoA to use.
         */
         'site' => 'example',

         /*
          * The Home Locator Identifier. Use this if your phpPoA configuration
          * points to a GPoA instead of an Authentication Server (AS), and you
          * want to skip the identity provider selection page, by directly
          * selecting one here.
          */
          'hli' => 'exampleAS',
    ),
```

User attributes
---------------

[](#user-attributes)

If user attributes were received upon successful authentication, then their exact names and values will be transferred into the `$state['Attributes']` array. Please note that attribute name mapping could be needed. There's no support for asking specific attributes during PAPI authentication. Attributes released to a Service Provider must be agreed and configured on beforehand.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

3722d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/579a16ea8afccc6ab420c393f0e573296fe46dcd293aa4f3b71eefc158ebf3e4?d=identicon)[jaime](/maintainers/jaime)

---

Top Contributors

[![jaimeperez](https://avatars.githubusercontent.com/u/1942728?v=4)](https://github.com/jaimeperez "jaimeperez (12 commits)")[![josenunezherrero](https://avatars.githubusercontent.com/u/37400393?v=4)](https://github.com/josenunezherrero "josenunezherrero (2 commits)")[![lonoak](https://avatars.githubusercontent.com/u/2891452?v=4)](https://github.com/lonoak "lonoak (1 commits)")[![thijskh](https://avatars.githubusercontent.com/u/3808792?v=4)](https://github.com/thijskh "thijskh (1 commits)")

---

Tags

simplesamlphpRedIRISSIRPAPI

### Embed Badge

![Health badge](/badges/rediris-es-simplesamlphp-module-papi/health.svg)

```
[![Health](https://phpackages.com/badges/rediris-es-simplesamlphp-module-papi/health.svg)](https://phpackages.com/packages/rediris-es-simplesamlphp-module-papi)
```

###  Alternatives

[drupalauth/simplesamlphp-module-drupalauth

A SimpleSAMLphp module adding support for Drupal as the authentication source.

25305.4k1](/packages/drupalauth-simplesamlphp-module-drupalauth)

PHPackages © 2026

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