Download the PHP package clarity-tech/laravel-otp-generator without Composer
On this page you can find all versions of the php package clarity-tech/laravel-otp-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clarity-tech/laravel-otp-generator
More information about clarity-tech/laravel-otp-generator
Files in clarity-tech/laravel-otp-generator
Package laravel-otp-generator
Short Description a lightweight implementation of generating OTP and validating backed by Cache Storage for Laravel
License MIT
Homepage https://github.com/clarity-tech/laravel-otp-generator
Informations about the package laravel-otp-generator
a lightweight implementation of generating OTP and validating backed by Cache Storage for Laravel
When you use Redis or any Cache driver it will self destruct things
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
The validate methods throws two exceptions based on which you can handle in your use case and modify the response to give for the user output as needed
And when you have request context available you can pass that too for more secure hash key generation internally which locks the OTP to be valid for that session / IP address only
you can determine whether provide code is valid or not
Testing
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
- Manash Jyoti Sonowal
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-otp-generator with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^9.0
illuminate/http Version ^9.0