PHPackages                             tech-ed/simpl-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. tech-ed/simpl-otp

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

tech-ed/simpl-otp
=================

A simple and lightweight Laravel package for generating and verifying one-time passwords (OTPs), enhancing authentication security in your Laravel applications.

v1.0.2(8mo ago)1764MITPHPPHP ^8.2

Since Apr 19Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/Edmonbelchev/simpl-otp)[ Packagist](https://packagist.org/packages/tech-ed/simpl-otp)[ RSS](/packages/tech-ed-simpl-otp/feed)WikiDiscussions main Synced yesterday

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

SimplOtp
========

[](#simplotp)

A Laravel package for simple OTP generation and validation with built-in Blade frontend scaffolding.

Features
--------

[](#features)

- Generate and validate OTPs
- Ready-to-use Blade views
- Email notification support
- Configurable settings
- Easy integration

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

```
composer require tech-ed/simpl-otp
php artisan migrate
```

### Basic Usage

[](#basic-usage)

```
use TechEd\SimplOtp\SimplOtp;

// Generate OTP
$otp = SimplOtp::generate('user@example.com');

// Validate OTP
$result = SimplOtp::validate('user@example.com', '1234');
```

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

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --provider="TechEd\SimplOtp\SimplOtpServiceProvider" --tag="config"
```

Configure OTP settings in `config/simplotp.php`:

```
return [
    'otp' => [
        'length' => 4,           // OTP length
        'type' => 'numeric',     // 'numeric' or 'alphanumeric'
        'validity' => 15,        // Validity in minutes
    ],
    'success_messages' => [
        'otp_generated' => 'OTP generated',
        'otp_valid' => 'OTP is valid',
    ],
    'error_messages' => [
        'expired_otp' => 'OTP Expired',
        'invalid_otp' => 'Invalid OTP',
        'otp_not_found' => 'OTP not found',
    ]
];
```

Frontend Views
--------------

[](#frontend-views)

### Setup

[](#setup)

```
php artisan simplotp:publish-frontend
```

### Routes

[](#routes)

- Generate OTP: `/simplotp/generate`
- Verify OTP: `/simplotp/verify`

### Using in Your Controllers

[](#using-in-your-controllers)

```
return view('simplotp::generate');
return view('simplotp::verify');
```

### Customization

[](#customization)

The views are published to `resources/views/vendor/simplotp/` and include Bootstrap styling. You can customize them to match your application's design.

Email Notifications
-------------------

[](#email-notifications)

### Publish Email Template

[](#publish-email-template)

```
php artisan vendor:publish --provider="TechEd\SimplOtp\SimplOtpServiceProvider" --tag="email"
```

### Send OTP via Email

[](#send-otp-via-email)

```
use TechEd\SimplOtp\SimplOtp;
use TechEd\SimplOtp\EmailOtpVerification;

$user = auth()->user();
$otp = SimplOtp::generate($user->email);

if ($otp->status === true) {
    $user->notify(new EmailOtpVerification($otp->token));
}
```

Support
-------

[](#support)

If SimplOtp has been helpful to you and you'd like to support its development, consider buying the developer a cup of coffee! ☕

Your support is greatly appreciated and helps in maintaining and improving SimplOtp for the Laravel community.

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://buymeacoffee.com/edmonbelchev)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance62

Regular maintenance activity

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~273 days

Total

3

Last Release

257d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/387d9a8a826cd0910d1b10101aab647bbeb7ce7b89f1dd156d778d2a6acb17bb?d=identicon)[tech-ed](/maintainers/tech-ed)

---

Top Contributors

[![Edmonbelchev](https://avatars.githubusercontent.com/u/52108402?v=4)](https://github.com/Edmonbelchev "Edmonbelchev (12 commits)")

### Embed Badge

![Health badge](/badges/tech-ed-simpl-otp/health.svg)

```
[![Health](https://phpackages.com/badges/tech-ed-simpl-otp/health.svg)](https://phpackages.com/packages/tech-ed-simpl-otp)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

59437.0k9](/packages/jeremy379-laravel-openid-connect)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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