juhedata / laravel_cas_server
A laravel package provides CAS server implementation
4.0.6
2024-07-13 06:46 UTC
Requires
- php: >=7.0
- ext-dom: *
- doctrine/dbal: ^2.5
- guzzlehttp/guzzle: ^6.2|^7.0
- illuminate/support: ^5.5|^6.0|^7.0|^8.0
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ^4.0|^5.0
- phpunit/phpunit: ^6.0|^7.0|^8.0
README
laravel_cas_server is a Laravel package that implements the server part of CAS protocol v1/v2/v3.
This package works for Laravel >=5.5 .
Requirements
- PHP >=7.0
Installation && Usage
composer require juhedata/laravel_cas_server
php artisan vendor:publish --provider="JuheData\CAS\CASServerServiceProvider"
- modify
config/cas.php
, fields in config file are all self-described php artisan migrate
- make your
App\User
implementJuheData\CAS\Contracts\Models\UserModel
- create a class implements
JuheData\CAS\Contracts\TicketLocker
TicketLocker示例 - create a class implements
JuheData\CAS\Contracts\Interactions\UserLogin
UserLogin示例 - visit
http://your-domain/cas/login
to see the login page (assume that you didn't change therouter.prefix
value inconfig/cas.php
)
Example
If you are looking for an out of box solution of CAS Server powered by PHP, you can check php_cas_server