fengxin8144 / laravel_cas_server
A laravel package provides CAS server implementation , copy to leo108/laravel_cas_server
dev-master
2020-09-30 08:30 UTC
Requires
- php: >=7.0
- ext-dom: *
- doctrine/dbal: ^2.5
- guzzlehttp/guzzle: ^6.2
- illuminate/support: 6.*
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: 3.5.*|3.6.*
- phpunit/phpunit: ^6.0|^7.0
This package is auto-updated.
Last update: 2025-03-29 01:11:46 UTC
README
copy to leo108/laravel_cas_server
Requirements
- PHP >=7.0
Installation && Usage
composer require fengxin8144/laravel_cas_server
addfengxin8144\CAS\CASServerServiceProvider::class
to theproviders
field inconfig/app.php
php artisan vendor:publish --provider="fengxin8144\CAS\CASServerServiceProvider"
- modify
config/cas.php
, fields in config file are all self-described php artisan migrate
- make your
App\User
implementfengxin8144\CAS\Contracts\Models\UserModel
- create a class implements
fengxin8144\CAS\Contracts\TicketLocker
- create a class implements
fengxin8144\CAS\Contracts\Interactions\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