vulah / kohana-sentinel
Kohana module for integrating sentinel into kohana
Requires
- php: >=5.5.9
- cartalyst/sentinel: ^2.0
- illuminate/database: ^5.2
- illuminate/events: ^5.2
- kohana/core: ~3.3
- symfony/http-foundation: ^3.0
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.6
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2021-03-05 23:27:20 UTC
README
The sentinel library for Kohana 3 provides a simple integration with sentinel 2.*. You can configure your sentinel
integration by placing the config/sentinel.php
file into your app/config
folder and editing it.
Using Sentinel
To use Kohana Sentinel, install it by composer require. You can do this by running composer require vulah/kohana-sentinel
in your CLI.
Then add Kohana Sentinel to your modules in bootstrap.php
by adding the following line 'sentinel' => VENDORPATH.'vulah/kohana-sentinel'
.
To configure sentinel copy the vendor/vulah/kohana-sentinel/config/sentinel.php
or your app/config
folder and editing it.
Quick example
The following is a quick example of how to use Kohana Sentinel by creating a instance of Sentinel and calling the authenticate action.
$sentinel = \Kohana\Sentinel\SentinelFactory::create();
$sentinel->authenticate([
'email' => 'john.doe@example.com',
'password' => 'password',
]);