PHPackages                             conf09/saml2-bearer - 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. conf09/saml2-bearer

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

conf09/saml2-bearer
===================

This Pacakage Of CAS Apereo saml2 authentication with oauth2.0 for the authorization

1.1.7(4y ago)022PHPPHP &gt;=5.5.0

Since Feb 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/conf09/saml2-bearer)[ Packagist](https://packagist.org/packages/conf09/saml2-bearer)[ RSS](/packages/conf09-saml2-bearer/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (6)Used By (0)

Saml2 Bearer Client CAS Library
===============================

[](#saml2-bearer-client-cas-library)

This Package Is Laravel CAS Configuration Based Saml2 for Single Sign On Purpose

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

[](#installation---composer)

You can install the package via composer:

```
composer require conf09/saml2-bearer

```

Or manually add this to your composer.json:

**composer.json**

```
"conf09/saml2-bearer": "*"
```

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:

**config/app.php**

```
'providers' => [
        ...
    	Saml\Bearer\Saml2BearerServiceProvider::class,
]
```

#### Copy the package config to your local config with the publish command:

[](#copy-the-package-config-to-your-local-config-with-the-publish-command)

```
php artisan vendor:publish --provider="Saml\Bearer\Saml2BearerServiceProvider"
```

#### Configuration .env files

[](#configuration-env-files)

```
SAML2_CAS_IDP_HOST= // contain about cas url “https:///cas”
SAML2_CAS_IDP_x509= // contain of public x509 # contact developer of cas for this information

```

Configuration Middleware For Authentication

```
//this enable authentication if not authenticate in application

$saml2Bearer = Saml2Bearer::make();

return $saml2Bearer->getSamlAuth()->login(URL::full());
```

we need to configure event when the cas server is back for authentication Token And Data We Get

#### Configuration Event On EventServiceProvider.php in boot() function

[](#configuration-event-on-eventserviceproviderphp-in-boot-function)

```
Event::listen(Saml2LoginEvent::class, function (Saml2LoginEvent $event) {
    // your logic application here
});
```

Done

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

5

Last Release

1588d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13ec1e1275b94e86aab68e07d4e8ae84c15251883b7ef0f6b78ef8d800a7fc56?d=identicon)[ikblmul](/maintainers/ikblmul)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/conf09-saml2-bearer/health.svg)

```
[![Health](https://phpackages.com/badges/conf09-saml2-bearer/health.svg)](https://phpackages.com/packages/conf09-saml2-bearer)
```

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5742.2M17](/packages/directorytree-ldaprecord-laravel)[illuminate/auth

The Illuminate Auth package.

9327.9M1.2k](/packages/illuminate-auth)[scaler-tech/laravel-saml2

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

28158.7k](/packages/scaler-tech-laravel-saml2)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6753.6k5](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1542.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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