Download the PHP package vivanwebsolution/sylius-2fa-plugin without Composer

On this page you can find all versions of the php package vivanwebsolution/sylius-2fa-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sylius-2fa-plugin

Sylius 2FA Google Authenticator Plugin

This plugin enables Google Two-Factor Authentication (2FA) for Sylius 2.0 Admin Users using:

It allows admins to secure their accounts with Google Authenticator time-based one-time passwords (TOTP).


Features


Requirements


Installation

1. Install via Composer

2. Enable the Bundle

In config/bundles.php, register the bundle:

3. Configure the Bundle

Create the config file at config/packages/scheb_2fa.yaml:

To clear the Symfony cache, run:

4. Extend the AdminUser Entity

Modify your AdminUser entity to implement the 2FA interface:

5. Run Database Migrations

Ensure your database is configured, then run:

6. Override the Admin User Form Template

Create or override the following template:

Include the 2FA section:

7. Configure Routes

Add the plugin routes to config/routes.yaml:

Usage

  1. Log in to the Sylius Admin panel.

  2. Navigate to the Admin User detail page.

  3. Use the checkbox in the "Two-Factor Authentication" section to enable or disable Google 2FA for that admin user.

  4. When 2FA is enabled, the user will be prompted to enter a Google Authenticator code after logging in with their credentials.

References

Functionality Screenshot

© Vivan Web Solution — Open-source Sylius plugin for 2FA with Google Authenticator


All versions of sylius-2fa-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
endroid/qr-code Version ^6.0
scheb/2fa-bundle Version ^7.10
scheb/2fa-google-authenticator Version ^7.10
spomky-labs/otphp Version ^11.3
sylius/sylius Version ~2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vivanwebsolution/sylius-2fa-plugin contains the following files

Loading the files please wait ...