PHPackages                             ragingdave/simplersaml - 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. ragingdave/simplersaml

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

ragingdave/simplersaml
======================

Allows Simpler integration of SimpleSAML and Laravel.

61.5k4[4 issues](https://github.com/ragingdave/simplersaml/issues)[1 PRs](https://github.com/ragingdave/simplersaml/pulls)PHP

Since Oct 8Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

SimplerSaml
===========

[](#simplersaml)

Welcome to the even Simpler simplesamlphp integration for Laravel 5.

This library enables simple interaction between your Laravel application and using authentication from an IDP.

Feel free to bring up shortcomings in issues/PR so I can improve this and make it better for everyone.

Setup
-----

[](#setup)

Add the package to your composer.json:

```
composer require ragingdave/simplersaml:dev-master

```

Add the service provider in `config/app.php`:

```
RagingDave\SimplerSaml\SimplerSamlServiceProvider::class,

```

(OPTIONALLY) Publish the config to make changes:

```
php artisan vendor:publish --provider="RagingDave/SimplerSaml/SimplerSamlServiceProvider" --tag="config"

```

Configuration
-------------

[](#configuration)

This is pretty customizable from the start so if there is something missing chances are, I missed it, and you can help improve the package by telling me about it and I'll see what I can do (OR better yet submit a PR).

- Saml User Model (simplersaml.model)

    - This basically just is used currently to map saml attribute names to something that is meaningful for your application. (Ideally, this should be the only part to have to override)
- Routing (simplersaml.enableRoutes, simplersaml.routePrefix)

    - This will determine if the built in routes are registered and what they should register at.
    - A routePrefix of 'saml' will trigger routes 'saml/login' and 'saml/logout'
    - boolean value of enableRoutes will enable or disable the built-in routes entirely.
- SP and IDP (simplersaml.sp, simplersaml.idp)

    - These are pretty self-explanatory if you are using simplesamlphp, but...
    - sp should be the configured sp in the metadata (gets passed to SimpleSAML\_Auth\_Simple as the authSource)
    - idp is the configured idp in the simplesamlphp metadata
- Redirects (simplersaml.loginRedirect, simplersaml.logoutRedirect)

    - These determine the path to redirect to after login and logout (passed to redirect()-&gt;to())

Usage
-----

[](#usage)

So for this you can use the built-in middleware and augment them to add the saml isAuthenticated check, or use the SamlAuthenticate, and SamlRedirectIfAuthenticated included in this package. Anything more advanced like combining laravel session checking and saml session checking can be done by you by adding to the built-in Authenticate and RedirectIfAuthenticated.

There are a few events that are fired from this package to hook into the login and logout functions of the saml flow.

```
RagingDave\SimplerSaml\Events\SamlLogin
RagingDave\SimplerSaml\Events\SamlLogout

```

These can be listened for and acted upon to enable creating/logging in the saml user into a local laravel session to use

```
Auth::user(), Auth::check(), etc.

```

throughout the application. The problem here is that if the saml session times out, the laravel session could still be valid. The middleware in this package takes care of this so take a look in `` for an example.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/2431661633d5498cab078341a80894cf64e8bdb95f0fb77f4d50b5ab0d2fd7ac?d=identicon)[DaveMC08](/maintainers/DaveMC08)

---

Top Contributors

[![ragingdave](https://avatars.githubusercontent.com/u/1168344?v=4)](https://github.com/ragingdave "ragingdave (6 commits)")[![VickG](https://avatars.githubusercontent.com/u/3667059?v=4)](https://github.com/VickG "VickG (1 commits)")

### Embed Badge

![Health badge](/badges/ragingdave-simplersaml/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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