PHPackages                             niif/simplesamlphp-module-attributefromrestapi - 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. [API Development](/categories/api)
4. /
5. niif/simplesamlphp-module-attributefromrestapi

ActiveSimplesamlphp-module[API Development](/categories/api)

niif/simplesamlphp-module-attributefromrestapi
==============================================

Get attribute from any rest api

v1.0.0(10y ago)2161PHP

Since Oct 30Pushed 10y ago7 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Authproc filter for SSP to get any attribute from rest api
==========================================================

[](#authproc-filter-for-ssp-to-get-any-attribute-from-rest-api)

- Author: Gyula Szabó , NIIF Institute, Hungary

This module provides an authprocfilter, that get attributes from rest api in json format.

Install module
--------------

[](#install-module)

You can install the module with composer:

```
composer require niif/simplesamlphp-module-attributefromrestapi

```

### Authproc Filters

[](#authproc-filters)

The NameID of the request will be in the attribute as defined above. For example eduPersonPrincipalName. If this nameId is not in the users's attributes there will be shown an exception page, and the authentication process will be stopped.

*config/config.php*

```
   authproc.sp = array(
       ...
       '60' => array(
            'class' => 'attributefromrestapi:AttributeFromRestApi',
            'nameId_attribute_name' =>  'subject_nameid', // look at the aa authsource config
            'api_url' =>          'https://www.anyrestapi.com/getData',
       ),

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

3853d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbd1543568948482a6229c1c07ddcc76c71254d0d5c63c024a967222857c33bd?d=identicon)[gyufi](/maintainers/gyufi)

![](https://www.gravatar.com/avatar/b8bab3c1b234f0732268e672b7acc23549b3819e445c2fddc7de385dbac40e4d?d=identicon)[kukkjanos](/maintainers/kukkjanos)

![](https://www.gravatar.com/avatar/58cf0b44aa083da212f27d6c89a3ba7b0716079d39f2d2d845d4997d61e93571?d=identicon)[northway](/maintainers/northway)

---

Top Contributors

[![szabogyula](https://avatars.githubusercontent.com/u/3406217?v=4)](https://github.com/szabogyula "szabogyula (7 commits)")

### Embed Badge

![Health badge](/badges/niif-simplesamlphp-module-attributefromrestapi/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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