Download the PHP package rytescube/otpkit without Composer
On this page you can find all versions of the php package rytescube/otpkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rytescube/otpkit
More information about rytescube/otpkit
Files in rytescube/otpkit
Download rytescube/otpkit
More information about rytescube/otpkit
Files in rytescube/otpkit
Vendor rytescube
Package otpkit
Short Description Laravel package to generate otp or one time password
License MIT
Package otpkit
Short Description Laravel package to generate otp or one time password
License MIT
Please rate this library. Is it a good library?
Informations about the package otpkit
Laravel OTP
Laravel package to generate otp or one time password.
Installation
In Laravel 5.5+ otpkit will install via the new package discovery feature so you only need to add the package to your composer.json file
after installation you should see
and you are ready to go
Basic Usage
For quick generation of an OTP just do
This will generate a numeric OTP having length 4.
Advanced Usage
OTP generation
Generate an OTP using three variant. You can set the length of the OTP. If not supplied it will generate an OTP having default length 4.
Params | Value | Description | Example |
---|---|---|---|
$type | Otp::ALPHA |
Generates only alphabetic characters type OTP | Otp::generate(Otp::ALPHA); //AXBZ |
Otp::NUM (Default) |
Generates only numeric type OTP | Otp::generate(Otp::NUM); //1234 |
|
Otp::ALPHA_NUM |
Generates mix of alphabetic characters & numeric type OTP | Otp::generate(Otp::ALPHA_NUM); //1A3D |
|
$length | 4 (Default) | 5 | 6 | Decides the length of the OTP. | Otp::generate(Otp::ALPHA_NUM,5); //2X8DT |
All versions of otpkit with dependencies
PHP Build Version
Package Version
No informations.
The package rytescube/otpkit contains the following files
Loading the files please wait ....