PHPackages                             fouladgar/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. fouladgar/laravel-otp

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

fouladgar/laravel-otp
=====================

This package provides convenient methods for sending and validating OTP notifications to users for authentication.

v5.7.1(1w ago)21227.6k↓32.8%37[1 issues](https://github.com/mohammad-fouladgar/laravel-otp/issues)MITPHPPHP ^8.2CI passing

Since Feb 15Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/mohammad-fouladgar/laravel-otp)[ Packagist](https://packagist.org/packages/fouladgar/laravel-otp)[ RSS](/packages/fouladgar-laravel-otp/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (21)Versions (19)Used By (0)

Laravel OTP(One-Time Password)
==============================

[](#laravel-otpone-time-password)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3c9c24f22ff4af4e48f055b635cbd757b0626ea96b53229522bcff26ddabdbd5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f756c61646761722f6c61726176656c2d6f74702e737667)](https://packagist.org/packages/fouladgar/laravel-otp)[![Test Status](https://camo.githubusercontent.com/98fea9ebdf6902c4a8379d7f324d26103255e9a78e14c86908ac1b2d865863ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6d61642d666f756c61646761722f6c61726176656c2d6f74702f72756e2d74657374732e796d6c3f6c6162656c3d7465737473)](https://camo.githubusercontent.com/98fea9ebdf6902c4a8379d7f324d26103255e9a78e14c86908ac1b2d865863ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6d61642d666f756c61646761722f6c61726176656c2d6f74702f72756e2d74657374732e796d6c3f6c6162656c3d7465737473)[![Code Style Status](https://camo.githubusercontent.com/dd65b6a65dd785abbd8820a0f6400ea8c630ea50ded30de83d682cd56288709e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6d61642d666f756c61646761722f6c61726176656c2d6f74702f7068702d63732d66697865722e796d6c3f6c6162656c3d636f64652532307374796c65)](https://camo.githubusercontent.com/dd65b6a65dd785abbd8820a0f6400ea8c630ea50ded30de83d682cd56288709e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6d61642d666f756c61646761722f6c61726176656c2d6f74702f7068702d63732d66697865722e796d6c3f6c6162656c3d636f64652532307374796c65)[![Total Downloads](https://camo.githubusercontent.com/7e2c1c94ed5df8588ed5e37e0255e4038035b465155fd6f457960ae12bdb314e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f756c61646761722f6c61726176656c2d6f7470)](https://camo.githubusercontent.com/7e2c1c94ed5df8588ed5e37e0255e4038035b465155fd6f457960ae12bdb314e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f756c61646761722f6c61726176656c2d6f7470)

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

[](#introduction)

Most web applications need an OTP(one-time password) or secure code to validate their users. This package allows you to send/resend and validate OTP for users authentication with user-friendly methods.

Basic Usage:
------------

[](#basic-usage)

```
