yiirocks / voyti-2fa-webauthn
WebAuthn/passkey two-factor authentication method for the YiiRocks Voyti Yii3 extension
Fund package maintenance!
Requires
- php: >=8.3
- report-uri/passkeys-php: ^2.0
- yiirocks/voyti-2fa: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: @stable
- infection/infection: ^0.34.0
- nyholm/psr7: ^1.8
- phpunit/phpunit: @stable
- psr/http-client: ^1.0
- 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 20:55:55 UTC
README
WebAuthn / passkey two-factor authentication method for Voyti, the Yii3 user-management extension. Uses a client-collected credential (security key, platform authenticator, or passkey) rather than a typed code, and renders its own login-confirmation fragment.
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 stores enrolled credentials in its own user_webauthn_credential table (migration path registered automatically).
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-webauthn
Documentation
Installation steps, the relying-party configuration, and the rest of the 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