PHPackages                             rroslaniec/cas - 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. rroslaniec/cas

ActiveLibrary

rroslaniec/cas
==============

Add CAS server SSO authentication to laravel 4.x

v1.2.0(11y ago)015MITPHPPHP &gt;=5.3.0

Since Jun 12Pushed 11y agoCompare

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

READMEChangelogDependencies (2)Versions (11)Used By (0)

cas
===

[](#cas)

CAS server SSO authentication in laravel 4.x

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

[](#installation)

Require this package in your composer.json and run composer update (or run `composer require xavrsl/cas:dev-master` directly):

```
"xavrsl/cas": "dev-master"

```

After updating composer, add the ServiceProvider to the providers array in app/config/app.php

```
'Xavrsl\Cas\CasServiceProvider',

```

As well as the Facade :

```
'Cas' => 'Xavrsl\Cas\Facades\Cas',

```

You need to publish the conf so you will ffind it in app/config/packages/xavrsl/cas/

```
$ php artisan config:publish xavrsl/cas

```

Configuration
=============

[](#configuration)

Configuration should be pretty straightforward for anyone who's ever used the PHPCas client. However, I've added the possibility to easily turn your application into a CAS Proxy, a CAS Service or both. You only need to set the cas\_proxy setting to true (if you need to proxy services) and set the cas\_service to whatever proxy you want to allow (this is all explained in the config file).

Usage
=====

[](#usage)

Authenticate against the CAS server

```
Cas::authenticate();

```

Exemple of Cas authentication in a route filter :

```
Route::group(array('https', 'before' => 'cas'), function()
{
  Route::controller('toolbar', 'ToolbarController');

  Route::controller('bibsearch', 'BibsearchController');
});

Route::controller('bibimages', 'BibimagesController');

Route::filter('cas', function()
{
  Cas::authenticate();
});
```

Then get the current user id this way :

```
Cas::getCurrentUser();

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~41 days

Recently: every ~57 days

Total

8

Last Release

4066d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/227617b249d72f2ae195aeef76746f301eab9c9f9eeaadf7ffee59a6a29b0dc2?d=identicon)[rroslaniec](/maintainers/rroslaniec)

---

Top Contributors

[![XavRsl](https://avatars.githubusercontent.com/u/1185840?v=4)](https://github.com/XavRsl "XavRsl (16 commits)")[![umt-dev-123](https://avatars.githubusercontent.com/u/136470301?v=4)](https://github.com/umt-dev-123 "umt-dev-123 (4 commits)")[![andremuller](https://avatars.githubusercontent.com/u/110772?v=4)](https://github.com/andremuller "andremuller (1 commits)")[![pies](https://avatars.githubusercontent.com/u/37940?v=4)](https://github.com/pies "pies (1 commits)")

---

Tags

laravelSSOcasphpCAS

### Embed Badge

![Health badge](/badges/rroslaniec-cas/health.svg)

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

###  Alternatives

[xavrsl/cas

Add CAS server SSO authentication to Laravel 4 and 5

7736.8k](/packages/xavrsl-cas)[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)
