Skip to content
L

Laravel Otp

OTP generator and validator

by ichtrojanFree

#4986in Utilities
0In stores

Description

Laravel OTP is a small package for generating and validating one-time passwords in a Laravel application. It is meant mostly for authenticat…

Highlights

  • Generate numeric or alphanumeric one-time codes
  • Set code length and validity in minutes
  • Validate codes with clear success and failure responses
  • Check validity without consuming the code
  • Delete expired tokens

Ratings & Reviews

No ratings yet

Be the first to rate Laravel Otp.

People also visit

O

Otp

Generate OTP with expiry for PHP without using Database

Developer Tools
Launch
G

Google2fa Laravel

A One Time Password Authentication package, compatible

Utilities
Launch
O

Otpauth

Implements two-step verification of HOTP/TOTP. Also known as one time password

Utilities
Launch
O

Otplib

One Time Password (OTP) / 2FA for Node.js and Browser

Utilities
Launch
D

Django Phone Verify

A Django app to support phone number verification

Utilities
Launch
O

Otp Authenticator Webapp

A 'Google Authenticator' like Single Page Application

Utilities
Launch

Laravel Otp FAQ

What is Laravel OTP used for?

It generates one-time passwords and checks them in a Laravel app, mainly for authentication such as verification codes.

How do I install it?

Install the package with Composer, then run the migrations so the table for the tokens is created.

How long does a code last?

By default a code is valid for 10 minutes. You can set a different validity period when you generate it, in minutes.

What do the validation responses mean?

The README lists four outcomes: success, does not exist, not valid, and expired. Each one comes back as an object.

Is it free?

The source is public on GitHub. The README does not state a price or a license.

What are the best Laravel Otp alternatives?

Popular alternatives to Laravel Otp include Google2fa Laravel, Otpauth and Otplib. See all Laravel Otp alternatives

Developer Stuff

Badges