PHPackages                             nirou8/laravel5-multiple-saml2 - 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. nirou8/laravel5-multiple-saml2

ActiveLibrary

nirou8/laravel5-multiple-saml2
==============================

A Laravel5 package for Saml2 integration as an SP based on OneLogin toolkit

v2.8(7y ago)093MITPHPPHP &gt;=5.4.0

Since Mar 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/nirou8/laravel5-multiple-saml2)[ Packagist](https://packagist.org/packages/nirou8/laravel5-multiple-saml2)[ Docs](https://github.com/nirou8/laravel5-multiple-saml2)[ RSS](/packages/nirou8-laravel5-multiple-saml2/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (9)Used By (0)

Laravel 5 - Multiple - Saml2
----------------------------

[](#laravel-5---multiple---saml2)

A Laravel package for Saml2 integration as a SP (service provider) based on [OneLogin](https://github.com/onelogin/php-saml) toolkit.

The aim of this library is to be as simple as possible.

Installation - Composer
-----------------------

[](#installation---composer)

You can install the package via composer:

```
composer require nirou8/laravel5-multiple-saml2

```

If you are using Laravel 5.5 and up, the service provider will automatically get registered.

For older versions of Laravel (&lt;5.5), you have to add the service provider and alias to config/app.php:

```
'providers' => [
        ...
    	Nirou\Saml2\Saml2ServiceProvider::class,
]

'alias' => [
        ...
        'Saml2' => Nirou\Saml2\Facades\Saml2Auth::class,
]
```

Then publish the config file with `php artisan vendor:publish`. This will add the file `app/config/saml2_settings.php`. This config is handled almost directly by [OneLogin](https://github.com/onelogin/php-saml) so you may get further references there, but will cover here what's really necessary. There are some other config about routes you may want to check, they are pretty straightforward.

### Configuration

[](#configuration)

Once you publish your saml2\_settings.php to your own files, you need to configure your sp and IDP (remote server). The only real difference between this config and the one that OneLogin uses, is that the SP entityId, assertionConsumerService url and singleLogoutService URL are injected by the library. They are taken from routes 'saml\_metadata', 'saml\_acs' and 'saml\_sls' respectively.

Remember that you don't need to implement those routes, but you'll need to add them to your IDP configuration. For example, if you use simplesamlphp, add the following to /metadata/sp-remote.php

You can check that metadata if you actually navigate to 'http://laravel\_url/saml2/metadata'

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

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

Every ~37 days

Recently: every ~64 days

Total

8

Last Release

2708d ago

Major Versions

1.0.0 → v2.22018-03-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a3697aa84f46df936997fa08e5eac733592dc606039d28f9e08d88aa4e43013?d=identicon)[nadhirk](/maintainers/nadhirk)

---

Top Contributors

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

---

Tags

samlSAML2idplaravel5sponelogin

### Embed Badge

![Health badge](/badges/nirou8-laravel5-multiple-saml2/health.svg)

```
[![Health](https://phpackages.com/badges/nirou8-laravel5-multiple-saml2/health.svg)](https://phpackages.com/packages/nirou8-laravel5-multiple-saml2)
```

###  Alternatives

[aacotroneo/laravel-saml2

A Laravel package for Saml2 integration as a SP (service provider) for multiple IdPs, based on OneLogin toolkit which is much more lightweight than simplesamlphp.

5704.4M](/packages/aacotroneo-laravel-saml2)[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

2737.5k](/packages/scaler-tech-laravel-saml2)

PHPackages © 2026

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