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

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

uicosp/jwt-cas-server
=====================

A simple CAS server based on jwt-auth for Laravel 5.3

1.0.2(9y ago)2212[1 issues](https://github.com/uicosp/jwt-cas-server/issues)MITPHP

Since Dec 29Pushed 9y ago1 watchersCompare

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

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

jwt-cas-server
==============

[](#jwt-cas-server)

一个基于 JWT 实现「单点登陆」的 [CAS，Central Authentication System](https://apereo.github.io/cas/4.2.x/planning/Architecture.html) 系统。

本项目依赖于 Laravel。

系统组成
----

[](#系统组成)

- CAS Server （服务端，仅有一个）
- CAS Clients （客户端，多个）

用户只需在 Server 端登陆一次，获得 `token` 后便可用该令牌访问系统中的任意 Clients。

**\[注意\] 此项目为该系统的服务端实现，客户端请移步 **

Server 端提供两个基本路由

- POST serverdomain/jwt/login 用于登陆
- POST serverdomain/jwt/user 用于获取用户信息

此外，本项目已集成第三方微信登陆

- POST serverdomain/jwt/login-via-wechat

安装
--

[](#安装)

`composer require "uicosp/jwt-cas-server"`

配置
--

[](#配置)

将 `Uicosp\JwtCasServer\CasServiceProvider::class` 添加到 `config/app.php` 的 `providers` 数组。

另外，本项目依赖 [typmon/jwt-auth](https://github.com/tymondesigns/jwt-auth) 和 [laravel-wecaht](https://github.com/overtrue/laravel-wechat)，所以还需添加各自的 service provider：

`Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class`,

`Overtrue\LaravelWechat\ServiceProvider::class`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

3

Last Release

3418d ago

### Community

Maintainers

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

---

Top Contributors

[![uicosp](https://avatars.githubusercontent.com/u/14162142?v=4)](https://github.com/uicosp "uicosp (6 commits)")

---

Tags

jwtlaravelcas

### Embed Badge

![Health badge](/badges/uicosp-jwt-cas-server/health.svg)

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

###  Alternatives

[unisharp/laravel-jwt

A jwt package for reisssuing token purpose based on jwt-auth package.

3610.5k1](/packages/unisharp-laravel-jwt)

PHPackages © 2026

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