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

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

iroid/laravel-otp
=================

A simple package to generate and validate OTPs

115PHP

Since Feb 22Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/salman1802/otp-generator)[ Packagist](https://packagist.org/packages/iroid/laravel-otp)[ RSS](/packages/iroid-laravel-otp/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel OTP ▲
=============

[](#laravel-otp-)

Introduction 🖖
--------------

[](#introduction-)

This is a simple package to generate and validate OTPs (One Time Passwords).

Installation 💽
--------------

[](#installation-)

Install via composer

```
composer require iroid/laravel-otp
```

Run Migrations

```
php artisan migrate
```

Usage 🧨
-------

[](#usage-)

> **NOTE**
> Response are returned as objects. You can access its attributes with the arrow operator (`->`)

### Generate OTP

[](#generate-otp)

```
