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

On this page you can find all versions of the php package lyn-huang/laravel-cas-client. 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-client

Laravel CAS Client

一个 Laravel 应用的 CAS (Central Authentication Service) 客户端 Composer 包,为已有 Laravel 项目提供 SSO 单点登录 与 SLO 单点登出 接入能力,默认与 lyn-huang/laravel-cas-server 配套使用,同时也兼容任何标准 CAS 2.0 / 3.0 协议的服务器。

✨ 功能特性

📋 环境要求

依赖 版本
PHP ^7.4 || ^8.0
Laravel ^8.0 || ^9.0 || ^10.0 || ^11.0
guzzlehttp/guzzle ^6.5 || ^7.0 || ^8.0

无需数据库迁移,无内置路由,无内置 Controller — 包只提供"能力",业务方自己决定怎么用。

⚡ 快速安装

详细步骤见 01 · 快速安装。

🚀 快速开始

最小接入代码(在 routes/web.php 或 routes/api.php 里):

回调成功后 handleCallback() 会返回 resolved_user / context / logout_url / record_client_token_url, 业务方拿到这些数据后,自己决定写 Auth::login() / Sanctum / JWT / 自定义 token。 包不默认执行登录态落地 — 这是核心设计边界。

🎯 核心定位

本包是"协议处理层",不是"业务登录态层"。

关键认知:

📚 使用文档

章节 内容
01 · 快速安装 环境要求、安装步骤、.env 速查、验证安装
02 · 配置解读 全部配置项详解,含协议 / 适配器 / 绑定说明
03 · SSO 单点登录 主流程、4 种适配器、协议增强参数、单次覆盖
04 · SLO 单点登出 登出动作、SLO 回调、record-client-token 登记
05 · 自定义与扩展 替换 UserResolver / ResponseBuilder / AuthStateChecker
06 · 事件体系 6 个事件详解 + Listener 实战
07 · CAS 协议参考 端点 URL、请求/响应结构、协议字段
08 · 错误码 / 动作码 15 个统一错误码 + 7 个动作码
09 · 故障排查 Q&A、诊断步骤、已知限制
10 · SPA 应用接入指南 Vue/React SPA 接入方案,后端路由 + 前端代码 + SLO 实时性

📦 包结构

🤝 与 laravel-cas-server 配套

你需要 用这个包
部署 SSO 用户中心 lyn-huang/laravel-cas-server
接入已有 Laravel 应用 lyn-huang/laravel-cas-client ← 你在这

📄 License

MIT


All versions of laravel-cas-client 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-client contains the following files

Loading the files please wait ...