yiirocks / voyti-2fa-email
Email-code two-factor authentication method for the YiiRocks Voyti Yii3 extension
Fund package maintenance!
Requires
- php: >=8.3
- yiirocks/voyti-2fa: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: @stable
- infection/infection: ^0.34.0
- nyholm/psr7: ^1.8
- phpunit/phpunit: @stable
- rector/rector: ^2.1.1
- vimeo/psalm: 6.x-dev
- yiisoft/code-style: ^1.1
- yiisoft/config: ^1.6
- yiisoft/csrf: ^2.0
- yiisoft/db-sqlite: ^2.0
- yiisoft/di: *
- yiisoft/mailer: ^6.1
- yiisoft/router: ^4.0
- yiisoft/router-fastroute: ^4.0
- yiisoft/session: ^3.0
- yiisoft/user: ^2.3
- yiisoft/yii-view-renderer: ^7.1
This package is auto-updated.
Last update: 2026-08-11 19:38:43 UTC
README
Emailed one-time-code two-factor authentication method for Voyti, the Yii3 user-management extension. At the start of the login-confirmation step it mails a fresh six-digit code, checked against what the user enters.
Stats for Nerds
What this is
A two-factor method package for Voyti's voyti-2fa base. Install it and it registers itself — its button appears on the settings screen's method switcher and it becomes selectable in the login confirmation step. It needs only a configured mailer; no extra configuration.
Requirements
- PHP 8.3+
- yiirocks/voyti-2fa
Installation
The yiirocks/voyti-2fa base is pulled in automatically as a dependency:
composer require yiirocks/voyti-2fa-email
Documentation
Installation steps and the full configuration reference are covered at Yii.Rocks.
Testing
# Unit tests composer phpunit # Mutation testing composer infection # Static analysis composer psalm # Code style fixer composer php-cs-fixer