emanate / kitasa
This is my package kitasa
Fund package maintenance!
Requires
- php: ^8.4
- illuminate/contracts: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
README
This package provides a multi-stage phone number authentication system for Filament panels, including OTP-based password resets.
Installation
You can install the package via composer:
composer require emanate/kitasa
You can publish and run the migrations with:
php artisan vendor:publish --tag="kitasa-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="kitasa-config"
This is the contents of the published config file:
return [ 'phone_column' => 'phone_number', 'otp' => [ 'expiry' => 10, // minutes 'table' => 'kitasa_otps', ], ];
Optionally, you can publish the translations using
php artisan vendor:publish --tag="kitasa-translations"
Usage
To integrate the phone authentication system into your Filament panel, register the KitasaPlugin in your panel configuration:
use Emanate\Kitasa\KitasaPlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ KitasaPlugin::make(), ]); }
This will automatically override the default Filament login, password reset request, and password reset pages to use a phone-based, multi-stage flow.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.