PHPackages                             emotality/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. emotality/laravel-otp

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

emotality/laravel-otp
=====================

A Laravel package to send OTP via email &amp; SMS.

v1.1(3y ago)3233[1 PRs](https://github.com/emotality/laravel-otp/pulls)MITPHPPHP &gt;=7.2.5

Since Nov 4Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

Laravel OTP
===========

[](#laravel-otp)

[![Packagist License](https://camo.githubusercontent.com/65f8867314383ad1509e4612bd58c0e7ff8f165c6c43752ccd89ec3d832dffcf/68747470733a2f2f706f7365722e707567782e6f72672f656d6f74616c6974792f6c61726176656c2d6f74702f6c6963656e73652e706e67)](http://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/a658d60e1a0cc287d7f29abd8866096d2e65863966a4a2c228d55968bc8e993e/68747470733a2f2f706f7365722e707567782e6f72672f656d6f74616c6974792f6c61726176656c2d6f74702f76657273696f6e2e706e67)](https://packagist.org/packages/emotality/laravel-otp)[![Total Downloads](https://camo.githubusercontent.com/bd7909bad8164d7f45676b07eb798b0e9f628ea7f4f1ae01cd83c5039c676bed/68747470733a2f2f706f7365722e707567782e6f72672f656d6f74616c6974792f6c61726176656c2d6f74702f642f746f74616c2e706e67)](https://packagist.org/packages/emotality/laravel-otp)

A Laravel package to send OTP via email &amp; SMS. Specify different models and their columns!

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

[](#installation)

1. `composer require emotality/laravel-otp`
2. `php artisan vendor:publish --provider="Emotality\OTP\OTPServiceProvider"`
3. Configure your `config/otp.php` file

Usage
-----

[](#usage)

Import `OTP` class:

```
use Emotality\OTP\OTP;
```

Send OTP to the user that just logged in:

```
OTP::email($user);
OTP::sms($user);
OTP::smsOrEmail($user);
OTP::smsAndEmail($user);
```

If OTP was entered correctly, you can remove OTP from database:

```
OTP::clear($user);
```

Providers
---------

[](#providers)

- [Nexmo/Vonage](https://www.vonage.com)
- [PanaceaMobile](https://www.panaceamobile.com)
- More coming soon!

License
-------

[](#license)

laravel-otp is released under the MIT license. See [LICENSE](https://github.com/emotality/laravel-otp/blob/master/LICENSE) for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~364 days

Total

3

Last Release

1288d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0edff3a3b92fcabd1418b4af5a91783ba51d122e0e1d0b06603102b856ae099b?d=identicon)[emotality](/maintainers/emotality)

---

Top Contributors

[![emotality](https://avatars.githubusercontent.com/u/2683462?v=4)](https://github.com/emotality "emotality (2 commits)")[![souravtah](https://avatars.githubusercontent.com/u/45780006?v=4)](https://github.com/souravtah "souravtah (1 commits)")

---

Tags

laravelotpemailsms

### Embed Badge

![Health badge](/badges/emotality-laravel-otp/health.svg)

```
[![Health](https://phpackages.com/badges/emotality-laravel-otp/health.svg)](https://phpackages.com/packages/emotality-laravel-otp)
```

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[ferdous/laravel-otp-validate

Laravel package for OTP validation with built-in features like retry and resend mechanism. Built in max retry and max resend blocking. OTP/Security Code can be send over SMS or Email of your choice with user-defined template.

7124.4k](/packages/ferdous-laravel-otp-validate)[juanparati/brevosuite

Complete Brevo integration with Laravel

1010.8k](/packages/juanparati-brevosuite)[signaturetech/laravel-otp

A package to generate and manage otp

181.2k](/packages/signaturetech-laravel-otp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
