PHPackages                             svc/totp-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. svc/totp-bundle

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

svc/totp-bundle
===============

Userinterface for the excellent SchebTwoFactorBundle

6.11.0(3mo ago)31.0kMITPHPPHP ^8.4CI passing

Since Jun 6Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Sven-Ve/svc-totp-bundle)[ Packagist](https://packagist.org/packages/svc/totp-bundle)[ RSS](/packages/svc-totp-bundle/feed)WikiDiscussions main Synced 1mo ago

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

Svc/SvcTotpBundle
=================

[](#svcsvctotpbundle)

[![CI](https://github.com/Sven-Ve/svc-totp-bundle/actions/workflows/php.yml/badge.svg)](https://github.com/Sven-Ve/svc-totp-bundle/actions/workflows/php.yml)[![Latest Stable Version](https://camo.githubusercontent.com/c71a9cbb9d1f3c006b31417fcef40965e97eab83e404f55dcbb6348f94d05697/68747470733a2f2f706f7365722e707567782e6f72672f7376632f746f74702d62756e646c652f76)](https://packagist.org/packages/svc/totp-bundle)[![License](https://camo.githubusercontent.com/d53b359624e13444b202de119722ef1292d4ac42b7ac52ad6fbe27dde4114094/68747470733a2f2f706f7365722e707567782e6f72672f7376632f746f74702d62756e646c652f6c6963656e7365)](https://packagist.org/packages/svc/totp-bundle)[![Total Downloads](https://camo.githubusercontent.com/f0b91f1d123c78b292405d074c8fba67ca37af9a6c07469e71b9dc88fe1192db/68747470733a2f2f706f7365722e707567782e6f72672f7376632f746f74702d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/svc/totp-bundle)[![PHP Version Require](https://camo.githubusercontent.com/1c45b43063993bfed47697a8ac1c2088372c81aba365a817db6b42a40ba41bc5/687474703a2f2f706f7365722e707567782e6f72672f7376632f746f74702d62756e646c652f726571756972652f706870)](https://packagist.org/packages/svc/totp-bundle)[![Symfony](https://camo.githubusercontent.com/d9ac732c518763f6b4eed045514803fbff39dc254a2accabf5f11f3191c63985/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d372e32253242253230253743253230382d677265656e)](https://symfony.com/)[![Last commit](https://camo.githubusercontent.com/0aae04e2811604a3bc54b1021c5c387c90cb3cd4491ffae066a81671256683e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f5376656e2d56652f7376632d746f74702d62756e646c65)](https://camo.githubusercontent.com/0aae04e2811604a3bc54b1021c5c387c90cb3cd4491ffae066a81671256683e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f5376656e2d56652f7376632d746f74702d62756e646c65)

⚠️ **Version Compatibility:**

- **Version 6.x** (current): Requires Symfony 7.2+, PHP 8.4+
- **Version 5.x**: Compatible with Symfony 6.4 and 7.x, PHP 8.2+
- **Version 4.x**: Compatible with Symfony 6.1+
- **Version 1.x**: For older Symfony installations

**Breaking Changes:**

- *Version 6.4.0+*: All state-changing operations now require CSRF protection and POST methods. See [Usage documentation](docs/usage.md) for migration details.
- *Version 6.6.0* (2025-01): HTTP method restrictions enforced on all routes. Rate limiting requires symfony/rate-limiter dependency **and manual configuration**. Non-nullable `$backupCodes` array type in trait. See [Configuration documentation](docs/config.md#rate-limiting-configuration-version-660) for details.

Userinterface for the excellent SchebTwoFactorBundle
====================================================

[](#userinterface-for-the-excellent-schebtwofactorbundle)

SchebTwoFactorBundle provides the functions to implement simple 2FA. However, you have to create the user interface yourself.

This small bundle provides a ready to use implementation.

The following functions are enabled:

- TOTP
- Backup codes
- Trusted devices

Installation and configuration
------------------------------

[](#installation-and-configuration)

- [Installation](docs/installation.md)
- [Configuration](docs/config.md)
- [Usage](docs/usage.md)
- [Security Features](docs/security.md)
- [Logging](docs/logging.md)
- [Styling and Customization](docs/styling.md)

Screenshots
-----------

[](#screenshots)

### Enable 2FA

[](#enable-2fa)

[![Enable 2FA](/docs/images/2fa-enabled.png)](/docs/images/2fa-enabled.png)

### Disable 2FA

[](#disable-2fa)

[![Disable 2FA](/docs/images/2fa-disabled.png)](/docs/images/2fa-disabled.png)

### Backup codes

[](#backup-codes)

[![Backup codes](/docs/images/backup-codes.png)](/docs/images/backup-codes.png)

### Enter 2FA code

[](#enter-2fa-code)

[![Enter 2FA code](/docs/images/2fa-enter-code.png)](/docs/images/2fa-enter-code.png)

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance81

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~49 days

Recently: every ~17 days

Total

28

Last Release

106d ago

Major Versions

1.3.1 → 4.0.02022-07-17

4.1.0 → 5.0.02023-12-16

5.1.0 → 6.0.02024-10-27

PHP version history (4 changes)1.0.0PHP ^8.0.2

1.3.0PHP ^8.1

5.0.1PHP ^8.2

6.6.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/32cf6fdc8247699d8d6a80d5c9c11215031520c0aa2ae7ba52e81536db860a84?d=identicon)[iSven](/maintainers/iSven)

---

Top Contributors

[![Sven-Ve](https://avatars.githubusercontent.com/u/79282618?v=4)](https://github.com/Sven-Ve "Sven-Ve (67 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/svc-totp-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/svc-totp-bundle/health.svg)](https://phpackages.com/packages/svc-totp-bundle)
```

###  Alternatives

[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

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

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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