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

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

marcorombach/laravel-aaf-saml
=============================

SAML2 Module for Laravel and AAF IdP

048PHP

Since Sep 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/marcorombach/laravel-aaf-saml)[ Packagist](https://packagist.org/packages/marcorombach/laravel-aaf-saml)[ RSS](/packages/marcorombach-laravel-aaf-saml/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-aaf-saml
================

[](#laravel-aaf-saml)

This Laravel Package provides a simple way to authenticate with SAML2. Minimum requirement is a User Model/Table which has either a field 'username' or a field 'email'. It's recommended to define a post login route and a error route. The error route is called with a flashed session variable (session('error')) containing information to display.

To configure this package with NetIQ Advanced Authentication, a Event must be created.

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

[](#installation)

Install the package via composer:

```
composer require marcorombach/laravel-aaf-saml
```

You can publish the config file with:

```
php artisan vendor:publish --tag="aaf-saml-config"
```

This is the contents of the published config file:

```
return [
    'service_name' => '',
    'service_description' => '',
    'idpmetadataurl' => '',
    'post-login-route' => '', //Route to redirect to after login - if not set you will be redirected to the base URL
    'error-route' => '', //Route to redirect to on login error
];
```

Usage
-----

[](#usage)

```
$laravelAafSAML = new Marcorombach\LaravelAafSAML();
$authenticatable = $laravelAafSAML->authenticate('username', 'password');
```

It's not necessary to use the class directly. Laravel-AAF-SAML provides a route which starts the authentication process.

```
/saml-login

```

**Please note**: your application needs to use HTTPS, as it's a requirement of the NetIQ Advanced Authentication Framework.

Requirements
------------

[](#requirements)

- PHP 7.4 or greater
- Laravel 8.0 or greater

Credits
-------

[](#credits)

- [OneLogin - SAML PHP Toolkit](https://github.com/onelogin/php-saml)
- [Marco Rombach](https://github.com/marcorombach)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 65.5% 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/a524ddbf14cf88f0025961472396118baf4a27373beb6ec35bb1bf3aef55a884?d=identicon)[marcorombach](/maintainers/marcorombach)

---

Top Contributors

[![marcorombach-sauter](https://avatars.githubusercontent.com/u/188306274?v=4)](https://github.com/marcorombach-sauter "marcorombach-sauter (19 commits)")[![marcorombach](https://avatars.githubusercontent.com/u/36333308?v=4)](https://github.com/marcorombach "marcorombach (10 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[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)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

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

PHPackages © 2026

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