Download the PHP package adeshsuryan/laravel-otp-login without Composer
On this page you can find all versions of the php package adeshsuryan/laravel-otp-login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adeshsuryan/laravel-otp-login
More information about adeshsuryan/laravel-otp-login
Files in adeshsuryan/laravel-otp-login
Package laravel-otp-login
Short Description Adds a one-time password step after Laravel login, with pluggable SMS, mail, log, and array channels.
License MIT
Informations about the package laravel-otp-login
Laravel OTP Login
Adds a one-time password step after a successful Laravel login. Delivery is pluggable: local log / array channels for development and CI, mail for Mailpit or real SMTP, and optional SMS adapters (Twilio, Nexmo/Vonage, Msg91, BioTekno).
Packagist: adeshsuryan/laravel-otp-login
GitHub: adeshsuryan/laravel-otp-login
Choose the right version
Pin the package major to your Laravel major. Legacy tags stay frozen for existing installs.
| Laravel | Package constraint | PHP | Status |
|---|---|---|---|
| 13.x | adeshsuryan/laravel-otp-login:^13.0 |
^8.3 | supported — latest is 13.1.1 |
| 12.x | adeshsuryan/laravel-otp-login:^12.0 |
^8.2 | supported — latest is 12.1.1 |
| 11.x | adeshsuryan/laravel-otp-login:^11.0 |
^8.2 | security fixes shipped in 11.1.1; Laravel 11 itself is EOL — Composer's advisory policy may block it; upgrade Laravel |
| 10.x | adeshsuryan/laravel-otp-login:^10.0 |
^8.1 | security fixes shipped in 10.1.1; Laravel 10 is EOL — upgrade |
| 9.x | adeshsuryan/laravel-otp-login:^9.0 |
^8.0 | security fixes shipped in 9.1.1; Laravel 9 and PHP 8.0 are EOL — upgrade |
| 8.x | adeshsuryan/laravel-otp-login:^8.0 |
^7.3|^8.0 | security fixes shipped in 8.1.1; Laravel 8 and PHP ≤8.1 are EOL — upgrade |
| 5.x | adeshsuryan/laravel-otp-login:5.13 (or 5.8, …) |
historical | frozen |
EOL note: Composer's default
policy.advisories.blocknow refuses to install Laravel majors whose entire line carries security advisories (8/9/10/11). The package tags for those lines remain for pinned applications; they are not a recommendation to stay on an EOL framework.
Tags 0.1–5.13 are immutable historical releases for older Laravel 5-era apps.
Install (Laravel 8–13)
Package discovery registers OTPServiceProvider automatically.
Environment
For CI and automated browsers use OTP_SERVICE=array or OTP_SERVICE=mail with Mailpit. Do not put Twilio/Nexmo keys in the test matrix.
*Upgrading from `.0.x?** Read [UPGRADING.md](UPGRADING.md) —*.1.0`
changes storage defaults and the trusted-device cookie, and adds a migration.
After password login
Create a waiting OTP and send it:
Routes (middleware web + auth):
GET /login/verify→otp.viewPOST /login/check→otp.verify
Optional middleware alias: otp.verified.
Channels
| Key | Use |
|---|---|
log |
Default. Writes OTP to the Laravel log (and caches last OTP for tests). |
array |
Cache only. Best for PHPUnit. |
mail |
Laravel Mail (pair with Mailpit in Docker). |
twilio / nexmo / msg91 / biotekno |
Optional production SMS. |
Custom channel: implement adeshsuryan\LaravelOTPLogin\ServiceInterface and register the class under config/otp.php → services.
Tests
License
MIT. See LICENSE.md. Maintained by Adesh Kumar.
All versions of laravel-otp-login with dependencies
illuminate/auth Version ^13.0
illuminate/contracts Version ^13.0
illuminate/database Version ^13.0
illuminate/http Version ^13.0
illuminate/mail Version ^13.0
illuminate/routing Version ^13.0
illuminate/session Version ^13.0
illuminate/support Version ^13.0