PHPackages                             worksome/laravel-mfa - 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. worksome/laravel-mfa

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

worksome/laravel-mfa
====================

A driver-based multi-factor authentication package for Laravel

v0.3.0(2mo ago)870.6k—7.5%1[1 PRs](https://github.com/worksome/laravel-mfa/pulls)MITPHPPHP ^8.4CI passing

Since Sep 21Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/worksome/laravel-mfa)[ Packagist](https://packagist.org/packages/worksome/laravel-mfa)[ Docs](https://github.com/worksome/laravel-mfa)[ GitHub Sponsors](https://github.com/worksome)[ RSS](/packages/worksome-laravel-mfa/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (20)Versions (15)Used By (0)

Laravel Multi-Factor Authentication
===================================

[](#laravel-multi-factor-authentication)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5c4eb6ba0ee1e9f55c55d2c8346fcaab84916e236b5676744cc2e7f3430f6424/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776f726b736f6d652f6c61726176656c2d6d66612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/worksome/laravel-mfa)[![GitHub Tests Action Status](https://camo.githubusercontent.com/8cb7c8637e95e71830921b1b4fe721621a8ab1c86f42986d32d2aa88153c06ee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f776f726b736f6d652f6c61726176656c2d6d66612f74657374732e796d6c3f7374796c653d666c61742d737175617265266c6162656c3d7465737473266272616e63683d6d61696e)](https://github.com/worksome/laravel-mfa/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/dacd831f3d37076d811b888795e55fb130643eb3ed461159b9f73110ba32b3d2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f776f726b736f6d652f6c61726176656c2d6d66612f7374617469632e796d6c3f7374796c653d666c61742d737175617265266c6162656c3d636f64652532307374796c65266272616e63683d6d61696e)](https://github.com/worksome/laravel-mfa/actions?query=workflow%3A%22Static+Analysis%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/d8f59e98bfbf3e6cd7c1da8dc6fdf2d980caa17039384687c1f64bd303bcac46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776f726b736f6d652f6c61726176656c2d6d66612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/worksome/laravel-mfa)

A driver-based multi-factor authentication package for Laravel

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

[](#installation)

You can install the package via composer:

```
composer require worksome/laravel-mfa
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="mfa-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="mfa-config"
```

This is the contents of the published config file:

```
return [

    'user' => \App\Models\User::class,

    'channels' => [

        \Worksome\MultiFactorAuth\Enums\Channel::Email->value => [
            'driver' => env('MFA_EMAIL_DRIVER', 'null'),
        ],

        \Worksome\MultiFactorAuth\Enums\Channel::Sms->value => [
            'driver' => env('MFA_SMS_DRIVER', 'null'),
        ],

        \Worksome\MultiFactorAuth\Enums\Channel::Totp->value => [
            'driver' => env('MFA_TOTP_DRIVER', 'null'),
        ],

    ],

    // ...

];
```

For the full configuration, see [the `config/mfa.php` file](config/mfa.php).

Usage
-----

[](#usage)

```
$twoFactorAuth = new \Worksome\MultiFactorAuth\MultiFactorAuth();
$response = $twoFactorAuth->sms->make(
    new \Worksome\MultiFactorAuth\DataValues\Sms\E164PhoneNumber('+14155552671'),
);

dd($response);
```

### The `about` command

[](#the-about-command)

This package adds information to the `artisan about` command. This information can be disabled by setting the `mfa.features.about_command` configuration to `false`.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [GitHub Releases](https://github.com/worksome/laravel-mfa/releases) 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)

- [Owen Voke](https://github.com/owenvoke)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance87

Actively maintained with recent releases

Popularity38

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 92% 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 ~105 days

Recently: every ~180 days

Total

13

Last Release

70d ago

PHP version history (4 changes)v0.1.0PHP ^8.1

v0.2.0PHP ^8.2

v0.2.2PHP ^8.3

v0.2.3PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (104 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![lukeraymonddowning](https://avatars.githubusercontent.com/u/12202279?v=4)](https://github.com/lukeraymonddowning "lukeraymonddowning (3 commits)")[![olivernybroe](https://avatars.githubusercontent.com/u/5870441?v=4)](https://github.com/olivernybroe "olivernybroe (1 commits)")

---

Tags

laravelmfalaravelworksomelaravel-mfa

###  Code Quality

TestsPest

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/worksome-laravel-mfa/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[jeffgreco13/filament-breezy

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

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

81158.7k4](/packages/stephenjude-filament-two-factor-authentication)[njoguamos/laravel-turnstile

A laravel wrapper for https://developers.cloudflare.com/turnstile/

2315.9k2](/packages/njoguamos-laravel-turnstile)

PHPackages © 2026

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