PHPackages                             namacoders/filament-otp-login - 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. namacoders/filament-otp-login

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

namacoders/filament-otp-login
=============================

OTP Login for FilamentPHP forked from afsakar/filament-otp-login

v1.0.0(1y ago)021MITPHPPHP ^8.1

Since Jul 11Pushed 1y agoCompare

[ Source](https://github.com/Nama-Coders/filament-otp-login)[ Packagist](https://packagist.org/packages/namacoders/filament-otp-login)[ Docs](https://github.com/namacoders/filament-otp-login)[ GitHub Sponsors](https://github.com/namacoders)[ RSS](/packages/namacoders-filament-otp-login/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (2)Used By (0)

OTP Login for FilamentPHP
=========================

[](#otp-login-for-filamentphp)

This package is an OTP Login for FilamentPHP. It is a simple package that allows you to login to your FilamentPHP application using OTP. This package was forked from afsakar/filament-otp-login with auth guard addition

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

[](#installation)

You can install the package via composer:

```
composer require namacoders/filament-otp-login
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="filament-otp-login-migrations"
php artisan migrate
```

You can publish the config and translations files with:

```
php artisan vendor:publish --tag="filament-otp-login-config"
php artisan vendor:publish --tag="filament-otp-login-translations"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-otp-login-views"
```

This is the contents of the published config file:

```
return [
    'table_name' => 'otp_codes', // Table name to store OTP codes
    'guard' => 'web',
    'otp_code' => [
        'length' => env('OTP_LOGIN_CODE_LENGTH', 6), // Length of the OTP code
        'expires' => env('OTP_LOGIN_CODE_EXPIRES_SECONDS', 120), // Expiration time of the OTP code in seconds
    ],
];
```

Usage
-----

[](#usage)

Just register the `Namacoders\FilamentOtpLogin\FilamentOtpLoginPlugin` plugin in the your panel provider file.

```
use Namacoders\FilamentOtpLogin\FilamentOtpLoginPlugin;

    public function panel(Panel $panel): Panel
    {
        return $panel
            ->plugins([
                FilamentOtpLoginPlugin::make(),
            ]);
    }
```

**Note:* For medium and large scale applications, you only need to run "php artisan model:prune" command as cron to prevent the otp\_code table from bloating and performance issues.*

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)

- [Azad Furkan ŞAKAR](https://github.com/afsakar)
- [Abd AlRahman](https://github.com/namacoders)
- [All Contributors](../../contributors)
- [OTP Input inspiration](https://github.com/rajeshdewle/otp-pin-using-alpine-js-and-tailwindcss)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.4% 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

Unknown

Total

1

Last Release

671d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26160e94d3e26a1f3f379bc6563bbc60d37b9d7efa919a04775aa7bdeb7afc6e?d=identicon)[abedzoubi-namacoders](/maintainers/abedzoubi-namacoders)

---

Top Contributors

[![afsakar](https://avatars.githubusercontent.com/u/75483091?v=4)](https://github.com/afsakar "afsakar (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![abedzoubi26](https://avatars.githubusercontent.com/u/3339871?v=4)](https://github.com/abedzoubi26 "abedzoubi26 (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![leonardyrj](https://avatars.githubusercontent.com/u/8172136?v=4)](https://github.com/leonardyrj "leonardyrj (1 commits)")

---

Tags

laravelafsakarfilament-otp-loginnamacoders

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/namacoders-filament-otp-login/health.svg)

```
[![Health](https://phpackages.com/badges/namacoders-filament-otp-login/health.svg)](https://phpackages.com/packages/namacoders-filament-otp-login)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[afsakar/filament-otp-login

OTP Login for FilamentPHP

5826.6k](/packages/afsakar-filament-otp-login)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

81158.7k4](/packages/stephenjude-filament-two-factor-authentication)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

5925.8k](/packages/marcelweidum-filament-passkeys)

PHPackages © 2026

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