PHPackages                             szabogyula/simplesamlphp-module-attributecollector - 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. szabogyula/simplesamlphp-module-attributecollector

ActiveSimplesamlphp-module

szabogyula/simplesamlphp-module-attributecollector
==================================================

Collect attributes from backend databases like sql or ldap

2.1.0(4y ago)082PHP

Since Feb 28Pushed 4y agoCompare

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

READMEChangelog (9)Dependencies (2)Versions (11)Used By (0)

Attributecollector
==================

[](#attributecollector)

simplesamlphp auth proc filter, that get attributes from backend database and set to attributes array.

This code is delivered from:

Basic configuration
===================

[](#basic-configuration)

Configure this module as an Auth Proc Filter. More info at

Example
=======

[](#example)

In the following example the filter is configured for only one hosted IdP editing the file saml20-idp-hosted

```
$metadata = array(
    'ssp-idp' => array(
        ...

        'authproc' => array(
            10 => array(
                'existing' => 'preserve',
                'class' => 'attributecollector:AttributeCollector',
                'uidfield' => 'subject',
                'strict' => false, # optional
                'collector' => array(
                    'class' => 'attributecollector:SQLCollector',
                    'dsn' => 'pgsql:host=localhost;dbname=ssp-extra',
                    'username' => 'ssp-extra',
                    'password' => 'ssp-extra',
                    'query' => 'SELECT * from extra where subject=:uidfield',
                )
            )
        ),

        ...

    )
);
```

Configuration Options explained
===============================

[](#configuration-options-explained)

The filter needs the following options:

- class: The filter class. Allways: 'attributecollector:AttributeCollector'
- uidfield: The name of the field used as an unique user identifier. The configured collector recives this uid so it can search for extra attributes.
- collector: The configuration of the collector used to retrieve the extra attributes

The following options are optional:

- existing: Tell the filter what to do when a collected attribute already exists in the user attributes. Values can be: 'preserve': Ignore collected attribute and preserve the old one. This one is the default behaviour. 'replace': Ignore original attribute and replace it with the collected one. 'merge': Merge the collected attribute into the array of the original one.
- strict: default false, break the login flow if the mapped user not found in the mapping backend database or there is no value in the `uidfield` attribute.

Collector Configuration Options explained
=========================================

[](#collector-configuration-options-explained)

The collector configuration array needs at least one option:

- class: The collector class.

Some other options may be needed by the collector, refer to the collector documentation.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity69

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

Every ~228 days

Recently: every ~75 days

Total

10

Last Release

1669d ago

Major Versions

v1.0.7 → 2.0.02021-09-30

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/szabogyula-simplesamlphp-module-attributecollector/health.svg)

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

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M190](/packages/simplesamlphp-simplesamlphp)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)

PHPackages © 2026

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