PHPackages                             alrez96/laravel-otp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. alrez96/laravel-otp

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

alrez96/laravel-otp
===================

OTP login system for the Laravel framework.

v1.2.0(2y ago)29MITPHPPHP ^8.2

Since May 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alrez96/laravel-otp)[ Packagist](https://packagist.org/packages/alrez96/laravel-otp)[ RSS](/packages/alrez96-laravel-otp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

Laravel OTP - One-Time Password Authentication
==============================================

[](#laravel-otp---one-time-password-authentication)

[![Latest Stable Version](https://camo.githubusercontent.com/736a4020e6311c1f7f9a181da4787f32219897766655fbfd0910692ed6d8b735/687474703a2f2f706f7365722e707567782e6f72672f616c72657a39362f6c61726176656c2d6f74702f76)](https://packagist.org/packages/alrez96/laravel-otp)[![Total Downloads](https://camo.githubusercontent.com/e5ce2a731402cd761c4698758096313f0c9c0fcc511c7e12f2a998ded301b9f3/687474703a2f2f706f7365722e707567782e6f72672f616c72657a39362f6c61726176656c2d6f74702f646f776e6c6f616473)](https://packagist.org/packages/alrez96/laravel-otp)

Introduction
------------

[](#introduction)

This is a simple package for implementing the OTP system in Laravel, which only includes generating the token and validating it. You can use this package alongside Laravel's authentication system or the [laravel/breeze](https://github.com/laravel/breeze) package.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require alrez96/laravel-otp
```

Configuration
-------------

[](#configuration)

**You should publish** the migration and the config/otp.php config file with:

```
php artisan vendor:publish --provider="Alrez96\LaravelOtp\OtpServiceProvider"
```

Usage
-----

[](#usage)

### Generate OTP Token

[](#generate-otp-token)

```
