PHPackages                             leo108/laravel\_cas\_server - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. leo108/laravel\_cas\_server

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

leo108/laravel\_cas\_server
===========================

A laravel package provides CAS server implementation

4.0.0(2y ago)884.7k35[3 issues](https://github.com/leo108/laravel_cas_server/issues)MITPHPPHP &gt;=8.0

Since Sep 20Pushed 2y ago5 watchersCompare

[ Source](https://github.com/leo108/laravel_cas_server)[ Packagist](https://packagist.org/packages/leo108/laravel_cas_server)[ RSS](/packages/leo108-laravel-cas-server/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (7)Dependencies (18)Versions (17)Used By (0)

CAS Server for Laravel
======================

[](#cas-server-for-laravel)

laravel\_cas\_server is a Laravel package that implements the server part of [CAS protocol](https://apereo.github.io/cas/4.2.x/protocol/CAS-Protocol-Specification.html) v1/v2/v3.

This package works for Laravel 5.5/5.6 . Please check 2.x branch if you are using Laravel 5.1 - 5.4 .

[![Latest Version](https://camo.githubusercontent.com/c19e507da846176eb98519d469d98391223ed8761067326b326fd6d08ad1cb7c/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6c656f3130382f6c61726176656c5f6361735f7365727665722e737667)](https://github.com/leo108/laravel_cas_server/releases)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/c5bb83932a23b029e26266a15bfd4ba98278aa0a5602003856a3160a339228ff/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c656f3130382f6c61726176656c5f6361735f7365727665722f6d61737465722e737667)](https://travis-ci.org/leo108/laravel_cas_server)[![Coverage Status](https://camo.githubusercontent.com/fd2644003d38f6ee4fea4f70be234d5f2ebf4c2b10bf69f6f243315c53c14326/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c656f3130382f6c61726176656c5f6361735f7365727665722f6d61737465722e737667)](https://scrutinizer-ci.com/g/leo108/laravel_cas_server/code-structure)[![Total Downloads](https://camo.githubusercontent.com/5de3d8731522572db8513fa79c6c1da769f32fc96f162a1ce16af0078583f96c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c656f3130382f6c61726176656c5f6361735f7365727665722e737667)](https://packagist.org/packages/leo108/laravel_cas_server)

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

[](#requirements)

- PHP &gt;=7.0

Installation &amp;&amp; Usage
-----------------------------

[](#installation--usage)

- `composer require leo108/laravel_cas_server`
- add `Leo108\CAS\CASServerServiceProvider::class` to the `providers` field in `config/app.php`
- `php artisan vendor:publish --provider="Leo108\CAS\CASServerServiceProvider"`
- modify `config/cas.php`, fields in config file are all self-described
- `php artisan migrate`
- make your `App\User` implement `Leo108\CAS\Contracts\Models\UserModel`
- create a class implements `Leo108\CAS\Contracts\TicketLocker`
- create a class implements `Leo108\CAS\Contracts\Interactions\UserLogin`
- visit `http://your-domain/cas/login` to see the login page (assume that you didn't change the `router.prefix` value in `config/cas.php`)

Example
-------

[](#example)

If you are looking for an out of box solution of CAS Server powered by PHP, you can check [php\_cas\_server](https://github.com/leo108/php_cas_server)

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~168 days

Recently: every ~489 days

Total

16

Last Release

1052d ago

Major Versions

1.0.6 → 2.0.02016-10-29

2.1.0 → 3.0.02018-04-03

3.x-dev → 4.0.02023-08-13

PHP version history (3 changes)1.0.4PHP &gt;=5.5.9

3.0.0PHP &gt;=7.0

4.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5349de95f58718519b6bff1c26fc8fea971b2aae6ac01e0a152ffa1c13f2caff?d=identicon)[leo108](/maintainers/leo108)

---

Top Contributors

[![leo108](https://avatars.githubusercontent.com/u/1551716?v=4)](https://github.com/leo108 "leo108 (56 commits)")[![phy25](https://avatars.githubusercontent.com/u/331403?v=4)](https://github.com/phy25 "phy25 (4 commits)")[![sbtsrbayer](https://avatars.githubusercontent.com/u/5262641?v=4)](https://github.com/sbtsrbayer "sbtsrbayer (2 commits)")[![wuwx](https://avatars.githubusercontent.com/u/4401?v=4)](https://github.com/wuwx "wuwx (1 commits)")

---

Tags

cascas-serverlaravel-caslaravel-cas-serverphpphp-casphp-cas-server

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)

PHPackages © 2026

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