Download the PHP package promocat/yii2-twofa without Composer
On this page you can find all versions of the php package promocat/yii2-twofa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download promocat/yii2-twofa
More information about promocat/yii2-twofa
Files in promocat/yii2-twofa
Package yii2-twofa
Short Description Provides TOTP and QR codes for use with an authenticator like the one from Google or Authy
License MIT
Homepage https://github.com/promocat/yii2-twofa
Informations about the package yii2-twofa
Extension for Yii2 providing Two Factor Authentication
Provides TOTP and QR codes for use with an authenticator like the one from Google or Authy
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Setup
Update the user component in your config file to use the class
It should sorta look like this
Also add the "twoFa" component:
Next, add the TwoFaBehavior to your User model
Usage
Congratulations, you can now, for example, call
or
Use
for the 2FA activation and verification forms. Or at least let is be an example.
QR Code Widget
How to functionally implement:
See "example.php" to get started.
All versions of yii2-twofa with dependencies
yiisoft/yii2 Version ~2.0.0
bacon/bacon-qr-code Version ~2.0
pragmarx/google2fa Version ^8.0