dragonzap/2fa
Laravel 2FA package with email-based codes by default and optional TOTP for Google/Microsoft Authenticator. Protect routes via the twofactor middleware (always or if-enabled). Publish config, run migrations, and override classes to fully customize the flow.
laravel-2fa).For Executives: "This package lets us add 2FA in days, not months*, reducing fraud risk and meeting compliance needs without hiring crypto experts. For ~$0 cost, we get TOTP/SMS backup codes—critical for protecting user accounts (and our reputation). Alternatives like Duo cost thousands/year; this is a high-leverage, low-risk play."*
For Engineering: *"DragonZap2FA gives us pre-audited 2FA with Laravel’s familiar syntax. Key perks:
.env (e.g., DRAGONZAP_2FA_DRIVER=totp).Authenticatable or use middleware for forced 2FA.paragonie/random_compat under the hood.
Tradeoff: Limited community support (but the code is simple to debug). Recommend pairing with Laravel Telescope for monitoring 2FA events."*For Security Teams: *"This package mitigates credential stuffing by enforcing 2FA without custom crypto. Key controls:
HasApiTokens.How can I help you explore Laravel packages today?