Skip to content
T

TwoFactor

Two-Factor Authentication for all your users out-of-the-box

by LaragearFree

#3472in Utilities
0In stores

Description

TwoFactor is a PHP package for Laravel that adds two-factor authentication to the login flow of a Laravel app. It uses time-based one-time c…

Highlights

  • 6-digit time-based codes with no external API
  • Works with the normal login flow, no new guards needed
  • Artisan command installs migration, views and config
  • Set up with a QR code, otpauth URI or text string
  • Requires PHP 8.3+ and Laravel 12+

Ratings & Reviews

No ratings yet

Be the first to rate TwoFactor.

People also visit

2

2fa

Two Factor Authentication

Utilities
Launch
A

Authme

Simple cross-platform two-factor (2FA) authenticator app for desktop

Utilities
Launch
2

2FAuth

Manage your Two-Factor Authentication

Utilities
Launch
T

two-factor-authentication-best-practices

Multi-factor authentication

AI Skills
Get
T

Totp RS

RFC-compliant TOTP implementation with ease of use as a goal and additionnal…

Utilities
Launch
A

Authenticator

Cross Platform TOTP Authenticator App

Utilities
Launch

TwoFactor FAQ

Does it need a third-party service?

No. Codes are generated and checked inside your application, so there are no external APIs or SMS services to call.

What do I need to run it?

PHP 8.3 or later and Laravel 12 or later. You install the package with Composer.

How do users set it up?

Your app can show a QR code, an otpauth:// URI or a text string, which the user adds to an authenticator app.

Can I change the database table?

Yes. You can edit the migration to add columns or change the table name before you run it.

Is it open source?

The source is public on GitHub at Laragear/TwoFactor.

What are the best TwoFactor alternatives?

Popular alternatives to TwoFactor include 2fa, Authme and 2FAuth. See all TwoFactor alternatives

Developer Stuff

Badges