Download the PHP package lyn-huang/laravel-cas-server without Composer

On this page you can find all versions of the php package lyn-huang/laravel-cas-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-cas-server

Laravel CAS Server

一个功能完整的 Laravel CAS (Central Authentication Service) 服务器扩展包,实现 SSO 单点登录 与 SLO 单点登出,支持 CAS 1.0 / 2.0 / 3.0 协议。

✨ 功能特性

📋 环境要求

依赖 版本
PHP ^7.4 || ^8.0
Laravel ^8.0 || ^9.0 || ^10.0 || ^11.0
数据库 MySQL 5.7+ / MariaDB / SQLite / PostgreSQL

⚡ 快速安装

MySQL 5.7 + utf8mb4 用户,请先在 AppServiceProvider::boot() 加 Schema::defaultStringLength(191);

安装完成后访问 /cas/health 验证是否正常。

🚀 快速开始

  1. 在 cas_clients 表注册你的应用(client_redirect = 登录回调地址)
  2. 应用检测未登录 → 跳转 GET /cas/login?service={回调地址}
  3. 用户登录 → CAS 带 ticket 重定向回回调地址
  4. 应用调用 GET /cas/serviceValidate?service=&ticket= 验证并获取用户

详细流程见下方文档。

定位:本包是独立的"统一用户中心",通过 CAS 协议为多个已有系统提供 SSO/SLO。
任何 Web 应用(SPA / SSR / 移动端 webview)都可接入,只要能整页跳转。
接入方应用保持自己的用户体系,本包只做"认证网关",不替换用户表/Token。
详情看 08 · 接入方式与适用场景。

📚 使用文档

章节 内容
01 · 快速安装 环境要求、安装步骤、建表、创建客户端
02 · 配置解读 全部配置项说明 + .env 速查
03 · SSO 单点登录使用 SSO 流程、客户端接入、票据一次性、多应用同域
04 · SLO 单点登出 SLO 流程、登出回调实现、强制登出
05 · CAS 协议端点参考 全部端点 URL 与参数
06 · 自定义 模板 / 交互接口 / 用户模型 / 属性释放 / 事件
07 · 注意事项与故障排查 安全、部署、常见问题(Q&A)
08 · 接入方式与适用场景 定位 + 适用场景 + 成熟系统接入 + 不适合场景
09 · 客户端接入指南 接入方视角:从准备到落地,含各语言要点与自检清单

📦 包结构

📄 License

MIT


All versions of laravel-cas-server with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
guzzlehttp/guzzle Version ^6.5 || ^7.0 || ^8.0
laravel/framework Version ^8.0 || ^9.0 || ^10.0 || ^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lyn-huang/laravel-cas-server contains the following files

Loading the files please wait ...