PHPackages                             hihuangwei/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. hihuangwei/laravel\_cas\_server

ActiveLibrary

hihuangwei/laravel\_cas\_server
===============================

A laravel package provides CAS server implementation

10PHP

Since Apr 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hihuangwei/cas)[ Packagist](https://packagist.org/packages/hihuangwei/laravel_cas_server)[ RSS](/packages/hihuangwei-laravel-cas-server/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)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.8/6.0/7.0/8.0

[![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.4

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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/88077af0f824ce69160ed2c52077502f9e013c64e121cd8d5d880bbf99afafd3?d=identicon)[hihuangwei](/maintainers/hihuangwei)

---

Top Contributors

[![hihuangwei](https://avatars.githubusercontent.com/u/3166799?v=4)](https://github.com/hihuangwei "hihuangwei (2 commits)")

### Embed Badge

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

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

PHPackages © 2026

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