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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.block now 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):

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

PHP Build Version
Package Version
Requires php Version ^8.3
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package adeshsuryan/laravel-otp-login contains the following files

Loading the files please wait ...