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

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

owaslo/laravel-otp-authentication
=================================

To authenticate users using OTP

039PHP

Since Sep 21Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

To authenticate users using OTP
===============================

[](#to-authenticate-users-using-otp)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7f165cd2aac1f41aa8d1ac9299ede58ae05204f932570604a06bbb12239531df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f7761736c6f2f6c61726176656c2d6f74702d61757468656e7469636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/owaslo/laravel-otp-authentication)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bb4caec9da1e18d4c58c54178d68d8874d4f52e54e3d5636a9d1de10dde690e7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6f7761736c6f2f6c61726176656c2d6f74702d61757468656e7469636174696f6e2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/owaslo/laravel-otp-authentication/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/88ce971f6998c7fc4ff2abd7bac385edf7909019f69b46347c8aeb2957c613eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6f7761736c6f2f6c61726176656c2d6f74702d61757468656e7469636174696f6e2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/owaslo/laravel-otp-authentication/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/57f849ab926d7520deead8196765c3bf87fdf1aad310defddcfe1eb93454dc60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f7761736c6f2f6c61726176656c2d6f74702d61757468656e7469636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/owaslo/laravel-otp-authentication)

---

This repo can be used as to scaffold a Laravel package. Follow these steps to get started:

1. Press the "Use template" button at the top of this repo to create a new repo with the contents of this laravel-otp-authentication
2. Run "./configure-laravel-otp-authentication.sh" to run a script that will replace all placeholders throughout all the files
3. Remove this block of text.
4. Have fun creating your package.
5. If you need help creating a package, consider picking up our [Laravel Package Training](https://laravelpackage.training) video course.

---

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/4fa686fcd63307264913f45e7872d0cbd09aea5e998ac48d6c528170f31af70b/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d6f74702d61757468656e7469636174696f6e2e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-otp-authentication)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require owaslo/laravel-otp-authentication
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Owaslo\OtpAuthentication\OtpAuthenticationServiceProvider" --tag="laravel-otp-authentication-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Owaslo\OtpAuthentication\OtpAuthenticationServiceProvider" --tag="laravel-otp-authentication-config"
```

This is the contents of the published config file:

```
return [
];
```

Usage
-----

[](#usage)

```
$laravel-otp-authentication = new Owaslo\OtpAuthentication();
echo $laravel-otp-authentication->echoPhrase('Hello, Spatie!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Upeksha Liyanage](https://github.com/glupeksha)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/77461109714d4be6519e2c953df4324abdec7f1532a876c33bb68acc45b1dfa4?d=identicon)[glupeksha](/maintainers/glupeksha)

---

Top Contributors

[![glupeksha](https://avatars.githubusercontent.com/u/11607767?v=4)](https://github.com/glupeksha "glupeksha (18 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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