PHPackages                             arietimmerman/laravel-saml - 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. arietimmerman/laravel-saml

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

arietimmerman/laravel-saml
==========================

Laravel Package for creating a SAML identity provider

v0.5.6(3y ago)64852MITPHPPHP &gt;=7.0.0CI failing

Since Dec 24Pushed 3y ago2 watchersCompare

[ Source](https://github.com/arietimmerman/laravel-saml)[ Packagist](https://packagist.org/packages/arietimmerman/laravel-saml)[ RSS](/packages/arietimmerman-laravel-saml/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (16)Versions (12)Used By (0)

[![](https://github.com/arietimmerman/laravel-saml/workflows/CI/badge.svg)](https://github.com/arietimmerman/laravel-saml/workflows/CI/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/78c713cfadaaf8beda3c88f5bbfec414c47851bdfc6eca937a4b2e8f2d85924c/68747470733a2f2f706f7365722e707567782e6f72672f6172696574696d6d65726d616e2f6c61726176656c2d73616d6c2f762f737461626c65)](https://packagist.org/packages/arietimmerman/laravel-saml)[![Total Downloads](https://camo.githubusercontent.com/9ff16514dc6592a3e66fde8d01fc89692d11fa9096dbfb34751ca92917c024fe/68747470733a2f2f706f7365722e707567782e6f72672f6172696574696d6d65726d616e2f6c61726176656c2d73616d6c2f646f776e6c6f616473)](https://packagist.org/packages/arietimmerman/laravel-saml)

SAML for Laravel
================

[](#saml-for-laravel)

This is an SAML Identity Provider written in PHP with Laravel, built on top of [simplesamlphp/simplesamlphp](https://github.com/simplesamlphp/simplesamlphp) and some pieces of `adactive-sas/saml2-bridge-bundle`.

It is used by [idaas.nl](https://www.idaas.nl/): (not) yet another identity as a service platform.

**This library - especially the documentation - is work in progress**

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

[](#installation)

```
composer require arietimmerman/laravel-saml

```

Generate a keypair.

```
openssl req -new -x509 -days 3652 -nodes -out public.key -keyout private.key

```

Exclude url from csrf protection

```
class VerifyCsrfToken extends Middleware
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        '/saml/v2/*'
    ];
}

```

In your `routes/web.php` include the following.

```
ArieTimmerman\Laravel\SAML\RouteProvider::routes();
```

On login, do something like the following

```
Helper::getSAMLStateOrFail()->setAuthnContext(Constants::AC_KERBEROS);
Helper::saveSAMLState();

```

Redirect to the following

```
'http://www.ice.test/saml/v2/continue/' . Helper::getSAMLStateOrFail()->id;

```

Example request:

```
http://samlidp.dev/saml/v2/login?SAMLRequest=...

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

Recently: every ~73 days

Total

7

Last Release

1337d ago

PHP version history (3 changes)v0.5.0PHP ^7.0

v0.5.1PHP ^7.0|^8.0

v0.5.2PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/957298e7676d3a0e0fc0836e1374738ef5c407884f6b1b2e8c7998e27e4667d0?d=identicon)[arietimmerman](/maintainers/arietimmerman)

---

Top Contributors

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

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/arietimmerman-laravel-saml/health.svg)

```
[![Health](https://phpackages.com/badges/arietimmerman-laravel-saml/health.svg)](https://phpackages.com/packages/arietimmerman-laravel-saml)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M129](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M186](/packages/laravel-ai)[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.2k](/packages/larastan-larastan)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.5k91.9M588](/packages/laravel-passport)

PHPackages © 2026

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