abelorosz/twostep 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

abelorosz/twostep

Composer 安装命令:

composer require abelorosz/twostep

包简介

Two-step verification library with support for Laravel 4 integration

README 文档

README

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

Build Status

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.

Twostep is available via Packagist.

Require the package via Composer in your composer.json.

"abelorosz/twostep": "dev-master"

Run Composer to install or update the new requirement.

$ php composer.phar install

or

$ php composer.phar update

Now you are able to require the vendor/autoload.php file to PSR-0 autoload the library.

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.

Open your Laravel config file config/app.php and add the following lines.

In the $providers array add the service providers for this package.

'Abelorosz\Twostep\TwostepServiceProvider',

Add the facade of this package to the $aliases array.

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

Now Twostep will be auto-loaded by Laravel.

License

Twostep is licensed under the MIT License.

Copyright (c) 2014 Abel Orosz

统计信息

  • 总下载量: 903
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-02-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固