PHPackages                             bitexpert/sylius-2fa-plugin - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. bitexpert/sylius-2fa-plugin

ActiveSylius-plugin[Authentication &amp; Authorization](/categories/authentication)

bitexpert/sylius-2fa-plugin
===========================

Sylius 2FA Plugin

v0.1.1(3mo ago)3449—0%2[2 issues](https://github.com/bitExpert/sylius-2fa/issues)MITPHPPHP ^8.2CI passing

Since Feb 1Pushed 3mo agoCompare

[ Source](https://github.com/bitExpert/sylius-2fa)[ Packagist](https://packagist.org/packages/bitexpert/sylius-2fa-plugin)[ RSS](/packages/bitexpert-sylius-2fa-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (38)Versions (5)Used By (0)

Sylius 2FA Plugin
=================

[](#sylius-2fa-plugin)

[![Build Status](https://github.com/bitExpert/sylius-2fa/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/bitExpert/sylius-2fa/actions)[![installs on Packagist](https://camo.githubusercontent.com/24a6bc2183a0cbceea9287a9101274bd67de018cda075c10199b4182132fd561/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6269746578706572742f73796c6975732d3266612d706c7567696e)](https://packagist.org/packages/bitexpert/sylius-2fa-plugin/)[![Mastodon Follow](https://camo.githubusercontent.com/c2abd2d790b2fdf042e992e8872c59044086bdb16b119a61d8526d6238c3c2ba/68747470733a2f2f696d672e736869656c64732e696f2f6d6173746f646f6e2f666f6c6c6f772f3130393430383638313234363937323730303f646f6d61696e3d68747470733a2f2f726865696e6e65636b61722e736f6369616c)](https://rheinneckar.social/@bitexpert)

The **2FA** Plugin for *Sylius* allows admin users and shop users to enable two-factor authentication for their accounts. Users can choose between 2FA via Google Authenticator or email.

### 3-step Setup workflow:

[](#3-step-setup-workflow)

[![Setup 2FA for a user account](docs/assets/setup_workflow.png)](docs/assets/setup_workflow.png)

### 2-step Login workflow:

[](#2-step-login-workflow)

[![Login workflow with 2FA enabled](docs/assets/login.png)](docs/assets/login.png)

Features:
---------

[](#features)

- Admin users and shop users can enable two-factor authentication for their accounts
- Choose between Google Authenticator or email as an authentication method
- During login users can choose which authentication method to use

Requirements:
-------------

[](#requirements)

- PHP 8.2 or higher
- Sylius 2.0 or higher

Installation
------------

[](#installation)

1. Install the plugin via Composer

```
composer require bitexpert/sylius-2fa-plugin
```

2. Enable the plugin

```
