PHPackages                             attek/ptesaml - 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. attek/ptesaml

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

attek/ptesaml
=============

PTE simple SAML login

1.0.9(7y ago)01.1kMITPHP

Since Sep 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Attek/ptesaml)[ Packagist](https://packagist.org/packages/attek/ptesaml)[ RSS](/packages/attek-ptesaml/feed)WikiDiscussions master Synced yesterday

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

ptesaml
=======

[](#ptesaml)

PTE Saml Login

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

To install, either run

```
    composer require attek/ptesaml "1.*"

```

or add

```
"attek/ptesaml" : "1.*"

```

or clone form github

```
    git clone https://github.com/Attek/ptesaml

```

Usage
-----

[](#usage)

Set in config file (web.php)

```
'components' => [
    'saml' => [
            'class' => 'attek\ptesaml\Saml',
            'simpleSamlPath' => '/usr/share/simplesamlphp/',
            'config' => 'default-sp'
    ]
]
```

Use in code

```
$saml = Yii::$app->saml;
//check is authenticated
$saml->isAuthenticated();
//Login
$saml->requireAuth();
$saml->getAttributes();
$saml->logout();
$saml->getSamlUser();
```

Login button

```

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

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 ~98 days

Recently: every ~144 days

Total

9

Last Release

2774d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6275194?v=4)[attek](/maintainers/attek)[@Attek](https://github.com/Attek)

---

Top Contributors

[![Attek](https://avatars.githubusercontent.com/u/6275194?v=4)](https://github.com/Attek "Attek (27 commits)")

### Embed Badge

![Health badge](/badges/attek-ptesaml/health.svg)

```
[![Health](https://phpackages.com/badges/attek-ptesaml/health.svg)](https://phpackages.com/packages/attek-ptesaml)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[rmrevin/yii2-ulogin

Extension for yii2 ulogin integration

1411.9k](/packages/rmrevin-yii2-ulogin)

PHPackages © 2026

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