Download the PHP package thecsea/twofactor-dir without Composer

On this page you can find all versions of the php package thecsea/twofactor-dir. 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 twofactor-dir

twofactor-dir

Build status: Build Status Scrutinizer Code Quality Code Coverage Build Status Latest Stable Version Total Downloads Latest Unstable Version License

The most powerful and the simplest library to add two factor authentication by google authenticator, for every directory that you want in just one step

Constraints

Download

Get/update composer

This library require composer (download composer here https://getcomposer.org/)

Update composer

php composer.phar self-update

Download

Download via composer require (we suggest to create a dedicated directory for this)

php composer.phar require thecsea/twofactor-dir

or insert library as dependency in your composer project

thecsea/twofactor-dir": "1.0.*

in the last case you have to install or update you project

php composer.phar install

or

php composer.phar update

N.B. If you don't have access to server terminal you can perform installation on your pc and upload all via ftp

Update twofactor-dir

You can update twofactor-dir (according to version limit set in composer.json)

php composer.phar update

Use

Installation

You can set different different directory keeping only one software location, but you mustn't change it

Set up twofactor-dir

  1. Give php write permissions to the directory where you want to set up twofactor-dir
  2. Enable htacces and mod rewrite
  3. open via a browser the following page and insert the directory position (preferably absolute link)

vendor/thecsea/twofactor-dir/files/install.php

after this you will see new files and htaccess updated

We suggest to hide via htaccess the twofactor-dir installation directory

First Use

You can get secret or QR code on YOUR_DIR/get_qr.php. We suggest to use a https connection

After linked a device we suggest to hide get_qr.php for not logged users in the following way:

CAUTION Comment RewriteRule ^get_qr.php$ get_qr.php [L,QSA] on htaccess generated after get qr for the first time, so you are able to get qr (to add more devices) only after login

Use

When you try to access to each page of the directory you will be redirected to insert code page, when you insert code you will be logged until the session is closed.

You can add new devices after login (insert code page) calling YOUR_DIR/get_qr.php

Customize

Obviously you can customize interface modifying:

Disable

You can disable twofactor-dir temporarily commenting the redirect instructions on .htaccess

Uninstall

To unistall twofactor-dir for a directory you have to remove the following files from your dir:

and remove the twofactor-dir lines (marked) from .htacces

CAUTION: You must keep the twofactor-dir installation (installation downloaded by composer) if you have set up it in other directories

Credits

By thecsea.it


All versions of twofactor-dir with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
sonata-project/google-authenticator Version 1.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 thecsea/twofactor-dir contains the following files

Loading the files please wait ....