2017 © Pedro Peláez
 

library twostep

Two-step verification library with support for Laravel 4 integration

image

abelorosz/twostep

Two-step verification library with support for Laravel 4 integration

  • Friday, January 23, 2015
  • by abelorosz
  • Repository
  • 1 Watchers
  • 9 Stars
  • 883 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Two-step verification

Twostep is a PHP version of Google's two-step authentication library. The package includes ServiceProviders and Facades for easy Laravel 4 integration., (*1)

Build Status, (*2)

Requirements

  • PHP >= 5.4

Usage

  • Use Twostep::generateSecret() for generating the secret key
  • Use Twostep::checkCode(code, secret) for checking the code
  • Use Twostep::getUrl(user, hostname, secret) for generating the QR code url
  • Use Twostep::getCode(secret, ?time) for generating a code (for a given time)

Installation

The best way to install Twostep is quickly and easily with Composer., (*3)

Twostep is available via Packagist., (*4)

Require the package via Composer in your composer.json., (*5)

"abelorosz/twostep": "dev-master"

Run Composer to install or update the new requirement., (*6)

$ php composer.phar install

or, (*7)

$ php composer.phar update

Now you are able to require the vendor/autoload.php file to PSR-0 autoload the library., (*8)

Laravel 4 Integration

Twostep has optional support for Laravel 4 and comes with a Service Provider and Facades for easy integration. After you have installed Twostep correctly, just follow the instructions., (*9)

Open your Laravel config file config/app.php and add the following lines., (*10)

In the $providers array add the service providers for this package., (*11)

'Abelorosz\Twostep\TwostepServiceProvider',

Add the facade of this package to the $aliases array., (*12)

'Twostep'         => 'Abelorosz\Twostep\Facades\Twostep',

Now Twostep will be auto-loaded by Laravel., (*13)

License

Twostep is licensed under the MIT License., (*14)

Copyright (c) 2014 Abel Orosz, (*15)

The Versions

23/01 2015

dev-master

9999999-dev https://abelorosz.github.io/twostep/

Two-step verification library with support for Laravel 4 integration

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

laravel verification twostep

22/02 2014

v1.0

1.0.0.0 https://abelorosz.github.io/twostep/

Two-step verification library with support for Laravel 4 integration

  Sources   Download

MIT

The Requires

 

laravel verification twostep

22/02 2014

v1.0.1

1.0.1.0 https://abelorosz.github.io/twostep/

Two-step verification library with support for Laravel 4 integration

  Sources   Download

MIT

The Requires

 

laravel verification twostep