infuse / auth
Auth module for Infuse Framework
Installs: 2 803
Dependents: 15
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
Requires (Dev)
- infuse/email: ~1.2
- infuse/infuse: ~1.6
- mockery/mockery: ~1.0
- phpunit/php-code-coverage: 5.*
- phpunit/phpunit: 6.0.*
- pulsar/pulsar: ~0.6
- robmorgan/phinx: ~0.8
- satooshi/php-coveralls: ~1.0
Suggests
- ext-redis: *
README
Auth module for Infuse Framework
Installation
-
Install the package with composer:
composer require infuse/auth
-
Add the service to
services
in your app's configuration:'services' => [ // ... 'auth' => 'Infuse\Auth\Services\Auth' // ... ]
-
Add the migration to your app's configuration:
'modules' => [ 'migrations' => [ // ... 'Auth' ], 'migrationPaths' => [ // ... 'Auth' => 'vendor/infuse/auth/src/migrations' ] ]
-
(optional) Add the console command for helper tasks to
console.commands
in your app's configuration:'console' => [ // ... 'commands' => [ // ... 'Infuse\Auth\Console\ResetPasswordLinkCommand' ] ]
-
(optional) Add the garbage collection scheduled job to
cron
in your app's configuration:'cron' => [ // ... [ 'id' => 'auth:garbageCollection', 'class' => 'Infuse\Auth\Jobs\GarbageCollection', 'minute' => 30, 'hour' => 1, 'day' => 1 ] ]
Usage
You can create your own User model located at App\Users\Models\User
for futher customization.