Download the PHP package r/u2f-two-factor-bundle without Composer

On this page you can find all versions of the php package r/u2f-two-factor-bundle. 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 u2f-two-factor-bundle

r/u2f-two-factor-bundle

This Symfony2 bundle provides u2f authentication for your website using scheb/two-factor-bundle.

Installation

Step 1: Download using Composer

Step 2: Enable the bundles (skip when using Symfony Flex)

Add this to you app/AppKernel.php:

Step 3: Configure

These options are available but not required:

For the Authentication to work you User has to implement R\U2FTwoFactorBundle\Model\U2F\TwoFactorInterface

For the Registration you also need an entity that implements R\U2FTwoFactorBundle\Model\U2F\TwoFactorKeyInterface. Here is an example using doctrine.

Then you need to create an event subscriber to get and store the data of the registered key.

Also add routing definitions to your app/config/routing.yml

The Keys can be registered visiting /u2f_register. It needs to be served as https!

Step 4: Include Javascript

First you need to add the dependency u2f-api to your package.json.

If you're using Webpack Encore, include this line in your webpack.config.js and you're done:

If you're not using Webpack Encore, you need to bundle web/bundles/ru2ftwofactor/js/auth.js yourself, overwrite formTemplate and registerTemplate and add your JavaScript reference there.

License

This bundle is available under the MIT license.


All versions of u2f-two-factor-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
ext-json Version *
doctrine/common Version *
scheb/two-factor-bundle Version ^3.2.0|^4.0.0
yubico/u2flib-server Version ^1.0.0
symfony/framework-bundle Version ^3.4|^4.0|^5.0
symfony/templating Version ^3.4|^4.0|^5.0
doctrine/collections Version ^1.6
symfony/event-dispatcher-contracts Version ^2.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 r/u2f-two-factor-bundle contains the following files

Loading the files please wait ....