leo108 / laravel_cas_server
A laravel package provides CAS server implementation
Installs: 4 457
Dependents: 1
Suggesters: 0
Security: 0
Stars: 86
Watchers: 7
Forks: 35
Open Issues: 3
Requires
- php: >=8.0
- ext-dom: *
- doctrine/dbal: ^3
- guzzlehttp/guzzle: ^7
- illuminate/database: 9.*|10.*
- illuminate/http: 9.*|10.*
- illuminate/routing: 9.*|10.*
- illuminate/support: 9.*|10.*
- illuminate/validation: 9.*|10.*
- thecodingmachine/safe: ^2.5
Requires (Dev)
- laravel/pint: ^1.10
- mockery/mockery: ^1.0
- nunomaduro/larastan: ^2.6
- orchestra/testbench: 7.*|8.*
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^9.0|^10.0
- spatie/phpunit-snapshot-assertions: ^5.0
- thecodingmachine/phpstan-safe-rule: ^1.2
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/5.6 . Please check 2.x branch if you are using Laravel 5.1 - 5.4 .
Requirements
- PHP >=7.0
Installation && Usage
composer require leo108/laravel_cas_server
addLeo108\CAS\CASServerServiceProvider::class
to theproviders
field inconfig/app.php
php artisan vendor:publish --provider="Leo108\CAS\CASServerServiceProvider"
- modify
config/cas.php
, fields in config file are all self-described php artisan migrate
- make your
App\User
implementLeo108\CAS\Contracts\Models\UserModel
- create a class implements
Leo108\CAS\Contracts\TicketLocker
- create a class implements
Leo108\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