roadiz / two-factor-bundle
Provides two-factor authentication system for Roadiz CMS
Package info
github.com/roadiz/two-factor-bundle
Type:symfony-bundle
pkg:composer/roadiz/two-factor-bundle
Requires
- php: >=8.3
- doctrine/orm: ~2.20.0
- endroid/qr-code: ^4.0
- roadiz/core-bundle: 2.7.*
- roadiz/rozier-bundle: 2.7.*
- scheb/2fa-backup-code: ^7.5
- scheb/2fa-bundle: ^7.5
- scheb/2fa-google-authenticator: ^7.5
- scheb/2fa-totp: ^7.5
- scheb/2fa-trusted-device: ^7.5
- symfony/framework-bundle: 7.4.*
Requires (Dev)
- php-coveralls/php-coveralls: ^2.4
- phpstan/phpdoc-parser: <2
- phpstan/phpstan: ^2.1.36
- phpstan/phpstan-doctrine: ^2.0.13
- phpunit/phpunit: ^9.6
- roadiz/doc-generator: 2.7.*
- roadiz/entity-generator: 2.7.*
- roadiz/jwt: 2.7.*
- roadiz/random: 2.7.*
- symfony/stopwatch: 7.4.*
This package is auto-updated.
Last update: 2026-06-10 16:19:25 UTC
README
This bundle provides a two-factor authentication system for Roadiz CMS. Based on scheb/two-factor-bundle 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_TITLEandAPP_SECRETenvironment variables
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
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
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
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
- Copy and merge
@RoadizTwoFactor/config/packages/scheb_2fa.yamlfiles into your projectconfig/packagesfolder - Add this bundle routes to your project
config/routes.yamlfile:
# config/routes.yaml roadiz_two_factor: resource: "@RoadizTwoFactorBundle/config/routing.yaml"
Contributing
Report issues and send Pull Requests in the main Roadiz repository