PHPackages                             roadiz/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. [Admin Panels](/categories/admin)
4. /
5. roadiz/two-factor-bundle

ActiveSymfony-bundle[Admin Panels](/categories/admin)

roadiz/two-factor-bundle
========================

Provides two-factor authentication system for Roadiz CMS

v2.7.12(1mo ago)0214MITPHPPHP &gt;=8.3

Since Dec 12Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/roadiz/two-factor-bundle)[ Packagist](https://packagist.org/packages/roadiz/two-factor-bundle)[ RSS](/packages/roadiz-two-factor-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (60)Versions (194)Used By (0)

Roadiz Two-factor authentication bundle
=======================================

[](#roadiz-two-factor-authentication-bundle)

[![Run test status](https://github.com/roadiz/two-factor-bundle/actions/workflows/run-test.yml/badge.svg?branch=develop)](https://github.com/roadiz/two-factor-bundle/actions/workflows/run-test.yml/badge.svg?branch=develop)

This bundle provides a two-factor authentication system for Roadiz CMS. Based on [scheb/two-factor-bundle](https://github.com/scheb/2fa) bundle.

- OTP (One Time Password) authentication with Google Authenticator
- Backup codes (hashed and stored in database)
- Trusted devices (remembered for a configurable amount of time)
- Use `APP_NAMESPACE`, `APP_TITLE` and `APP_SECRET` environment variables

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require roadiz/two-factor-bundle

```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require roadiz/two-factor-bundle

```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    \RZ\Roadiz\TwoFactorBundle\RoadizTwoFactorBundle::class => ['all' => true],
];

```

Configuration
-------------

[](#configuration)

- Copy and merge `@RoadizTwoFactor/config/packages/scheb_2fa.yaml` files into your project `config/packages` folder
- Add this bundle routes to your project `config/routes.yaml` file:

```
# config/routes.yaml
roadiz_two_factor:
    resource: "@RoadizTwoFactorBundle/config/routing.yaml"

```

Contributing
------------

[](#contributing)

Report [issues](https://github.com/roadiz/core-bundle-dev-app/issues) and send [Pull Requests](https://github.com/roadiz/core-bundle-dev-app/pulls) in the [main Roadiz repository](https://github.com/roadiz/core-bundle-dev-app)

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance88

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

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 ~4 days

Total

192

Last Release

50d ago

PHP version history (3 changes)v2.2.3PHP &gt;=8.1

v2.4.0PHP &gt;=8.2

v2.6.6PHP &gt;=8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/380026?v=4)[Ambroise Maupate](/maintainers/ambroisemaupate)[@ambroisemaupate](https://github.com/ambroisemaupate)

---

Top Contributors

[![ambroisemaupate](https://avatars.githubusercontent.com/u/380026?v=4)](https://github.com/ambroisemaupate "ambroisemaupate (1 commits)")

---

Tags

cmsbackofficeroadizrezo zero

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[contao/core-bundle

Contao Open Source CMS

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

Roadiz is a modern CMS based on a polymorphic content-schema system which can handle many types of services. It’s based on Symfony component and Doctrine ORM for maximum performances and security.

3769.3k6](/packages/roadiz-roadiz)[open-dxp/opendxp

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

7310.3k29](/packages/open-dxp-opendxp)[kunstmaan/bundles-cms

The Kunstmaan CMS is an advanced yet user-friendly content management system, based on the full stack Symfony framework combined with a whole host of community bundles. It provides a full featured, multi-language CMS system with an innovative page and form assembling process, versioning, workflow, translation and media managers and much more.

411285.2k19](/packages/kunstmaan-bundles-cms)

PHPackages © 2026

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