[OUTDATED] Two-factor authentication for Symfony applications (new version: scheb/2fa-bundle)

Installs: 2 392 251

Dependents: 16

Suggesters: 2

Security: 2

Stars: 393

Watchers: 17

Forks: 116

Open Issues: 0


v4.18.4 2020-10-30 19:24 UTC


⚠ Outdated version - EOL in November 2021. Please use versions ≥ 5 from scheb/2fa.

This bundle provides two-factor authentication for your Symfony application.

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Monthly Downloads Total Downloads License


It comes with the following two-factor authentication methods:

Additional features you will like:

  • Interface for custom two-factor authentication methods
  • Trusted IPs
  • Trusted devices (once passed, no more two-factor authentication on that device)
  • Single-use backup codes for when you don't have access to the second factor device
  • Multi-factor authentication (more than 2 steps)
  • CSRF protection
  • Whitelisted routes (accessible during two-factor authentication)


composer require scheb/two-factor-bundle

... and follow the installation instructions.


Detailed documentation of all features can be found in the Resources/doc directory.

Version Guidance

If you have Symfony ≥ 4.4 and start using the bundle, please use bundle version 5, which is available as scheb/2fa-bundle from the scheb/2fa repository.

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 Security fixes until Nov 2021 3.4, ^4.0, ^5.0
5.x New features + Bug fixes 4.4, ^5.0


This bundle is available under the MIT license.


For information about the security policy and know security issues, see


Want to contribute to this project? See

Support Me

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.