PHPackages                             monkeydp/laravel-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. monkeydp/laravel-cas

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

monkeydp/laravel-cas
====================

Simple CAS Authentication for Laravel 5.5

0.1.6(8y ago)378MITPHPPHP &gt;=7.0.0

Since Jan 6Pushed 8y agoCompare

[ Source](https://github.com/monkeydp/laravel-cas)[ Packagist](https://packagist.org/packages/monkeydp/laravel-cas)[ RSS](/packages/monkeydp-laravel-cas/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

Laravel CAS
===========

[](#laravel-cas)

Based on

About
-----

[](#about)

Simple CAS Authentication for Laravel 5.5

Features
--------

[](#features)

- Single Sign On
- Single Logout

Requirement
-----------

[](#requirement)

- Laravel &gt;= 5.5

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

[](#installation)

Require the `monkeydp/laravel-cas` package in your composer.json:

```
$ composer require monkeydp/laravel-cas

```

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

[](#configuration)

The defaults are set in `config/cas.php`. Copy this file to your own config directory to modify the values. You can publish the config using this command:

```
$ php artisan vendor:publish --provider="Monkeydp\Cas\ServiceProvider"

```

> This command not working in `cmd`

In your `.env`, configuration is as follows

```
CAS_SERVER_VERSION=3.0
CAS_SERVER_HOST=your.cas-server.host
CAS_SERVER_PORT=443

# Keep empty if cas-server in root
CAS_SERVER_URI=/path/to/cas-server

# Keep empty if the cert is homemade
CAS_SERVER_CA_CERT=/path/to/cert

# An array of host names allowed to send logout requests, separated by ","
CAS_ALLOWED_CLIENTS=192.168.10.114,192.168.20.10

# The url you want to redirect to after logout
CAS_LOGOUT_REDIRECT_TO=http://your.project.host

```

Register Route Middleware
-------------------------

[](#register-route-middleware)

If you want to allow CAS on a specific route, add the `HandleCas` middleware to `$routeMiddleware` in `app/Http/Kernel.php`:

```
    protected $routeMiddleware = [
        // ...
        'cas' => \Monkeydp\Cas\HandleCas::class,
    ];

```

Example
-------

[](#example)

### Single sign on

[](#single-sign-on)

In `routes/web.php`, use `cas` middleware for any route has to login:

```
Route::group(['middleware' => 'cas'], function () {

    Route::get('/home', function(){
        return 'HOME';
    });
});

```

When you access `http://your.project.host/home`, the browser will redirect to `Login Page` of `cas-server`

### Single Logout

[](#single-logout)

Just access `http://your.project.host/cas/logout`

> Use `Get` request

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

7

Last Release

3045d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9be8fb172a7a4778e371362eeff1f96f245b7f9e3df7e12b64951ce486dac49?d=identicon)[monkeydp](/maintainers/monkeydp)

---

Top Contributors

[![monkeydp](https://avatars.githubusercontent.com/u/35134112?v=4)](https://github.com/monkeydp "monkeydp (8 commits)")

---

Tags

laravelcasphpCAS

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[xavrsl/cas

Add CAS server SSO authentication to Laravel 4 and 5

7736.8k](/packages/xavrsl-cas)[jurager/teams

Laravel package to manage team functionality and operate with user permissions.

22817.3k](/packages/jurager-teams)

PHPackages © 2026

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