All packages
Two-Factor for Laravel
Requirements
- PHP 8.4+
- Laravel 12 or 13
- An application encryption key (APP_KEY) — the secret, and the recovery codes in encrypted mode, use Laravel’s encrypter
- crypto-for-laravel, enums-for-laravel and package-toolkit-for-laravel — hard dependencies (the OTP primitives, the enum helpers and the service-provider base)
- qr-for-laravel — optional, only to render the enrolment QR code server-side as SVG
Show your open-source love
This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.
More ways to support, including cryptoBy donating, you agree to our donation terms.
Want this built into your product?
We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.