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

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

juhedata/cas
============

Adds CAS support to Laravel 6.9、7.x、8.x

v1.0.5(5y ago)1429MITPHPPHP &gt;=7.2.0

Since Jan 13Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (34)Used By (0)

安装
--

[](#安装)

> composer require juhedata/cas
>
> php artisan juhecas:publish

> 内置默认路由

```
// cas客户端登录：重定向至服务端登录
Route::get('/api/cas/login/{mode?}', 'CasLoginController@casLogin')->name('casLogin');

// cas 登录回调：服务端登录成功后回调前端ST-校验地址
Route::get('/api/cas/oauth/ucenter', 'CasLoginController@oauthUCenter')->middleware('cas.auth');

// cas登出：客户端登出地址
Route::get('/api/cas/logout', 'CasLoginController@casLogout')->middleware('authCheck');
```

> 中间件

```
// cas.auth登录校验中间件
JuHeData\CasLogin\Http\Middleware\JuHeCasMiddleware

// 登录状态校验中间件：
JuHeData\CasLogin\Http\Middleware\AuthCheckMiddleware
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

33

Last Release

1852d ago

Major Versions

v0.3.0 → v1.0.02021-03-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/8eaea22e75e1ebee47617e0085720b07829ebfbd14e865878eb1853ecdddacd0?d=identicon)[xwzgit](/maintainers/xwzgit)

---

Top Contributors

[![juheapis](https://avatars.githubusercontent.com/u/204961774?v=4)](https://github.com/juheapis "juheapis (29 commits)")

---

Tags

Laravel-Support

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[hasinhayder/tyro

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

6712.1k2](/packages/hasinhayder-tyro)[scaler-tech/laravel-saml2

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

2737.5k](/packages/scaler-tech-laravel-saml2)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)[pschocke/laravel-telegram-login-widget

Easily integrate Telegrams login widget into your Laravel application to send Telegram messages

1610.4k](/packages/pschocke-laravel-telegram-login-widget)[setiawanhu/sanctum-auth

Laravel package for generating user authentication feature using Laravel Sanctum

132.8k](/packages/setiawanhu-sanctum-auth)

PHPackages © 2026

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