Download the PHP package putheakhem/laravel-otp without Composer
On this page you can find all versions of the php package putheakhem/laravel-otp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download putheakhem/laravel-otp
More information about putheakhem/laravel-otp
Files in putheakhem/laravel-otp
Download putheakhem/laravel-otp
More information about putheakhem/laravel-otp
Files in putheakhem/laravel-otp
Vendor putheakhem
Package laravel-otp
Short Description A simple OTP generator for Laravel
License MIT
Package laravel-otp
Short Description A simple OTP generator for Laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-otp
Laravel OTP Package - putheakhem/otp
A Laravel package for generating, validating, and managing One-Time Passwords (OTP) with security features.
📌 Features
- ✅ Rate-limited OTP generation
- ✅ Configurable expiration times
- ✅ Invalidate OTP after first use
- ✅ Lock OTP to user session
- ✅ Invalidate OTP after too many failed attempts
- ✅ View detailed error messages
- ✅ Customizable mail template
- ✅ Auditable logs for security
🔧 Installation
1️⃣ Install via Composer
2️⃣ Publish Configuration & Migrations
This will create:
- A config file at
config/otp.php - A database table
otps
3 Configuration
Modify config/otp.php to adjust settings:
🔥 Usage
Generate an OTP
📌 Output Example:
Validate an OTP
📌 Expected Output: ✅ Success
❌ Failure (Invalid OTP)
❌ Failure (Expired OTP)
📩 Email Customization
Customize the email template at:
Example:
🔬 Testing
Run All Tests
📌 Expected Output:
📢 Contributing
- Fork the repository
-
Clone the repo:
-
Create a new branch:
-
Commit changes & push:
- Submit a Pull Request 🚀
🏆 Credits
Developed by Puthea Khem.
Special thanks to the Laravel community! 🎉
📜 License
This package is open-source and licensed under the MIT License.
All versions of laravel-otp with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3.0
The package putheakhem/laravel-otp contains the following files
Loading the files please wait ...