Download the PHP package murillo-cardoso-by-hasan-ahani/filament-otp-input without Composer
On this page you can find all versions of the php package murillo-cardoso-by-hasan-ahani/filament-otp-input. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download murillo-cardoso-by-hasan-ahani/filament-otp-input
More information about murillo-cardoso-by-hasan-ahani/filament-otp-input
Files in murillo-cardoso-by-hasan-ahani/filament-otp-input
Package filament-otp-input
Short Description Otp input for filament
License MIT
Homepage https://github.com/hasan-ahani/filament-otp-input
Informations about the package filament-otp-input
Filament One-Time Passcode (OTP) Input Form Component

filament-otp-input
is a package built for Filament that provides a One-Time Passcode (OTP) input form component that offers you the ability to add the following features:
- Customize the number of inputs
- Perform an action after filling the code
- Move to the next input after filling
- Move to the previous input with backspaces
Installation
You can install the package via composer:
Usage
Inside a form schema, you can use the Otp input like this:
The code above will render a otp input inside the form.
Number inputs
If the number of entries you want is less or more than the default 4 numbers, you can change it according to the example below
The above code creates 6 inputs for entering the OTP code.
Get Code
If you need to receive the code after entering it completely, proceed as in the example below
Input type
By default, the input type is set to "number". If you need to change it to "password" or "text", you can use the following methods:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-otp-input with dependencies
filament/forms Version ^3.0
spatie/laravel-package-tools Version ^1.15.0
illuminate/contracts Version ^10.0|^11.0