PHPackages                             fungio/two-factor-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. fungio/two-factor-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

fungio/two-factor-bundle
========================

Two Factor Authentication for Symfony using Two Factor Authentication Service

v1.0.3(7y ago)08361MITPHPPHP &gt;=5.5.0

Since Aug 17Pushed 4y agoCompare

[ Source](https://github.com/fungio/two-factor-bundle)[ Packagist](https://packagist.org/packages/fungio/two-factor-bundle)[ Docs](https://2fas.com)[ RSS](/packages/fungio-two-factor-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (29)Versions (5)Used By (0)

Fungio/TwoFactorBundle
======================

[](#fungiotwofactorbundle)

[![Badge Symfony Version](https://camo.githubusercontent.com/374730bd8ccec7331f6df550ecd7f0fb5e5555ec96370c7f5a6fb3cdf64085a5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d322e382c253230332e78253230616e64253230342e782d677265656e2e737667)](https://camo.githubusercontent.com/374730bd8ccec7331f6df550ecd7f0fb5e5555ec96370c7f5a6fb3cdf64085a5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d322e382c253230332e78253230616e64253230342e782d677265656e2e737667)

Fungio/TwoFactorBundle adds support for two-factor authentication and increases security on your website by adding the second step in the login process. This Bundle uses an external API to serve the authentication process, so You have to create an account to use it. This can be done quickly and easily in one of our `console` commands.

Currently it supports only **TOTP** (Time-Based One-Time Password Algorithm) authentication method, but in the future there will be next authentication methods introduced: (text/voice/e-mail messages) and more new features like log in through sockets, offline codes etc.

To use the TOTP authentication method, users must have a mobile application that can generate TOTP tokens from the secret key (usually placed in QR Code).

You can use for example:

- 2FAS Auth
- Google Authenticator
- Microsoft Authenticator
- Authy
- FreeOTP
- and many others…

**Requirements:**

- PHP &gt;= 5.5
- Symfony ~2.8|~3.0|~4.0
- JQuery (or another JS framework or plain javascript, but you have to make some changes in the template - more info in documentation)
- Doctrine ORM (Doctrine ODM, CouchDB and Propel is not supported for now)
- Supports only for "Form" login method (your own login form or [FOSUserBundle](https://github.com/FriendsOfSymfony/FOSUserBundle))

Documentation
-------------

[](#documentation)

The documentation can be found in the [Resources/doc](Resources/doc/index.md) directory.

About
-----

[](#about)

For more information check out our website at

Licence
-------

[](#licence)

This bundle is available under the [MIT license](LICENSE).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~159 days

Total

4

Last Release

2763d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2470117?v=4)[Pierrick](/maintainers/fungio)[@fungio](https://github.com/fungio)

---

Top Contributors

[![2fas-com](https://avatars.githubusercontent.com/u/78911177?v=4)](https://github.com/2fas-com "2fas-com (4 commits)")[![fungio](https://avatars.githubusercontent.com/u/2470117?v=4)](https://github.com/fungio "fungio (2 commits)")

---

Tags

Two Factor Authentication

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fungio-two-factor-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/fungio-two-factor-bundle/health.svg)](https://phpackages.com/packages/fungio-two-factor-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M719](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M482](/packages/pimcore-pimcore)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k16.8k](/packages/prestashop-prestashop)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
