Two-factor authentication for Symfony applications 🔐
PHP
595
1,368 commits
updated Oct 13, 2026
This bundle provides two-factor authentication for your Symfony application.
ℹ️ The repository contains bundle versions ≥ 5, which are compatible with Symfony 4.4 or later. The older (unsupported) versions are located in the scheb/two-factor-bundle repository.
The bundle is split into sub-packages, so you can choose the exact feature set you need and keep installed dependencies to a minimum.
Core features are provided by scheb/2fa-bundle:
Additional features:
scheb/2fa-trusted-device)scheb/2fa-backup-code)Two-factor authentication methods:
scheb/2fa-totp)scheb/2fa-google-authenticator)scheb/2fa-email)Follow the installation instructions.
Detailed documentation of all features can be found on the Symfony Bundles Documentation website.
This repository contains a small test application that can be quickly set-up locally to test two-factor authentication
in a real Symfony environment. Check out the readme file in the app folder for more details.
For a live demo of this application, visit https://2fa.scheb.de.
| Version | Status | Symfony Version |
|---|---|---|
| 1.x | EOL | >= 2.1, < 2.7 |
| 2.x | EOL | ^2.6, ^3.0, ^4.0 |
| 3.x | EOL | 3.4, ^4.0, ^5.0 |
| 4.x | EOL | 3.4, ^4.0, ^5.0 |
| 5.x | EOL | 4.4, ^5.0 |
| 6.x | EOL | 5.4, ^6.0 |
| 7.x | Bug & security fixes | 6.4, ^7.0 |
| 8.x | New features + Bug fixes | 7.4, ^8.0 |
This software is available under the MIT license.
For information about the security policy and know security issues, see SECURITY.md.
Want to contribute to this project? See CONTRIBUTING.md.
I'm developing this library since 2014. I love to hear from people using it, giving me the motivation to keep working on my open source projects.
If you want to let me know you're finding it useful, please consider giving it a star ⭐ on GitHub.
If you love my work and want to say thank you, you can help me out for a beer 🍻️ via PayPal.
267 followers · starred Jul 2026
58 followers · starred Aug 2026
293 followers · starred Dec 2020
32 followers · starred Oct 2021
Two-factor authentication for Symfony applications 🔐
PHP
595
1,368 commits
updated Oct 13, 2026
This bundle provides two-factor authentication for your Symfony application.
ℹ️ The repository contains bundle versions ≥ 5, which are compatible with Symfony 4.4 or later. The older (unsupported) versions are located in the scheb/two-factor-bundle repository.
The bundle is split into sub-packages, so you can choose the exact feature set you need and keep installed dependencies to a minimum.
Core features are provided by scheb/2fa-bundle:
Additional features:
scheb/2fa-trusted-device)scheb/2fa-backup-code)Two-factor authentication methods:
scheb/2fa-totp)scheb/2fa-google-authenticator)scheb/2fa-email)Follow the installation instructions.
Detailed documentation of all features can be found on the Symfony Bundles Documentation website.
This repository contains a small test application that can be quickly set-up locally to test two-factor authentication
in a real Symfony environment. Check out the readme file in the app folder for more details.
For a live demo of this application, visit https://2fa.scheb.de.
| Version | Status | Symfony Version |
|---|---|---|
| 1.x | EOL | >= 2.1, < 2.7 |
| 2.x | EOL | ^2.6, ^3.0, ^4.0 |
| 3.x | EOL | 3.4, ^4.0, ^5.0 |
| 4.x | EOL | 3.4, ^4.0, ^5.0 |
| 5.x | EOL | 4.4, ^5.0 |
| 6.x | EOL | 5.4, ^6.0 |
| 7.x | Bug & security fixes | 6.4, ^7.0 |
| 8.x | New features + Bug fixes | 7.4, ^8.0 |
This software is available under the MIT license.
For information about the security policy and know security issues, see SECURITY.md.
Want to contribute to this project? See CONTRIBUTING.md.
I'm developing this library since 2014. I love to hear from people using it, giving me the motivation to keep working on my open source projects.
If you want to let me know you're finding it useful, please consider giving it a star ⭐ on GitHub.
If you love my work and want to say thank you, you can help me out for a beer 🍻️ via PayPal.
267 followers · starred Jul 2026
58 followers · starred Aug 2026
293 followers · starred Dec 2020
32 followers · starred Oct 2021