PHPackages                             tfsthiagobr98/filament-2fa - 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. tfsthiagobr98/filament-2fa

ActiveLibrary

tfsthiagobr98/filament-2fa
==========================

A 2FA plugin for filament.

2.1.1(1y ago)12.3k—0%MITPHPPHP ^8.3

Since Dec 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TFSThiagoBR98/filament-2fa)[ Packagist](https://packagist.org/packages/tfsthiagobr98/filament-2fa)[ Docs](https://github.com/tfsthiagobr98/filament-2fa)[ RSS](/packages/tfsthiagobr98-filament-2fa/feed)WikiDiscussions main Synced today

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

Filament 2FA Plugin
===================

[](#filament-2fa-plugin)

A Two Factor Authentication plugin for Filament

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

[](#installation)

1. Install the package via composer (requires filament &gt;= 2.10.40)

```
composer require tfsthiagobr98/filament-2fa
```

2. Publish assets and run migrations

```
php artisan vendor:publish --tag="filament-2fa-migrations"
php artisan migrate
```

Optionally, you can publish config or views:

```
php artisan vendor:publish --tag="filament-2fa-config"
php artisan vendor:publish --tag="filament-2fa-views"
```

3. Add `\TFSThiagoBR98\FilamentTwoFactor\TwoFactorAuthenticatable` trait to your user model.
4. Update the `config/filament.php` to point to the Two Factor Login::class.

```
"auth" => [
    "guard" => env("FILAMENT_AUTH_GUARD", "web"),
    "pages" => [
        "login" =>
            \TFSThiagoBR98\FilamentTwoFactor\Http\Livewire\Auth\Login::class,
    ],
],
```

Integrate With Custom Profile Page
----------------------------------

[](#integrate-with-custom-profile-page)

This package has a component for two-factor setup that can be easily added to a profile page, like the one for [filament-jetstream-theme](https://github.com/tfsthiagobr98/filament-jetstream-theme).

Create a view with the `` component like the example below:

```
// resources/views/partials/2fa-section.blade.php

        {{ __('filament-2fa::two-factor.title') }}

        {{ __('filament-2fa::two-factor.description') }}

```

Then add the view to your profile page using render hook:

```
## in Service Provider file
public function boot()
{
    Filament::registerRenderHook(
        'filament-jetstream.profile-page.end',
        fn (): View => view('partials.2fa-section'),
    );
}
```

Screenshots
-----------

[](#screenshots)

[![Two Factor Page](./images/two-factor-page.jpeg)](./images/two-factor-page.jpeg)[![Confirm Password](./images/confirm-password.jpeg)](./images/confirm-password.jpeg)[![Finishing enable](./images/finishing-enable.jpeg)](./images/finishing-enable.jpeg)[![Recovery codes](./images/recovery-codes.jpeg)](./images/recovery-codes.jpeg)[![Enabled](./images/enabled.jpeg)](./images/enabled.jpeg)[![Challenge](./images/challenge.jpeg)](./images/challenge.jpeg)[![Breezy](./images/breezy.png)](./images/breezy.png)

Credits
-------

[](#credits)

- [Danilo Andrade](https://github.com/dmandrade)

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance49

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 63.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

Every ~206 days

Total

5

Last Release

373d ago

Major Versions

0.x-dev → 1.0.02023-10-24

1.0.0 → 2.0.02024-03-30

PHP version history (3 changes)0.x-devPHP ^8.0

2.0.0PHP ^8.2

2.1.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f8b7219158e12dabe52f2b5cdbb3f20ddd36cebc2416ce01e7517237203bd91?d=identicon)[tfsthiagobr98](/maintainers/tfsthiagobr98)

---

Top Contributors

[![TFSThiagoBR98](https://avatars.githubusercontent.com/u/16943898?v=4)](https://github.com/TFSThiagoBR98 "TFSThiagoBR98 (26 commits)")[![dmandrade](https://avatars.githubusercontent.com/u/7275012?v=4)](https://github.com/dmandrade "dmandrade (14 commits)")[![koupisbean](https://avatars.githubusercontent.com/u/44702609?v=4)](https://github.com/koupisbean "koupisbean (1 commits)")

---

Tags

laravel2fafilament

### Embed Badge

![Health badge](/badges/tfsthiagobr98-filament-2fa/health.svg)

```
[![Health](https://phpackages.com/badges/tfsthiagobr98-filament-2fa/health.svg)](https://phpackages.com/packages/tfsthiagobr98-filament-2fa)
```

###  Alternatives

[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

83145.0k3](/packages/stephenjude-filament-two-factor-authentication)[webbingbrasil/filament-2fa

A 2FA plugin for filament.

4739.1k](/packages/webbingbrasil-filament-2fa)[tapp/filament-auditing

Filament Laravel Auditing plugin.

112347.0k2](/packages/tapp-filament-auditing)[webbingbrasil/filament-maps

Map components for Filament.

7831.1k](/packages/webbingbrasil-filament-maps)[caresome/filament-auth-designer

Transform Filament's default auth pages into stunning, brand-ready experiences

3711.7k1](/packages/caresome-filament-auth-designer)[awcodes/filament-addons

A set of components / fields to extend Filament Admin.

3013.1k1](/packages/awcodes-filament-addons)

PHPackages © 2026

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