Download the PHP package battlerattle/doorman without Composer
On this page you can find all versions of the php package battlerattle/doorman. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download battlerattle/doorman
More information about battlerattle/doorman
Files in battlerattle/doorman
Package doorman
Short Description RFC compliant Two Factor Authentication for Time-Based One-Time Password and HMAC-Based One-Time Password algorithm with support for Google Authenticator
License MIT
Informations about the package doorman
Doorman
Doorman is an RFC-compliant implementation of the TOTP (Time-Based One-Time Passsword, RFC 6238) algorithm, which is commonly used for Two Factor Authentication.
A wrapper for the Google Authenticator - a key manager and code generator, which can be downloaded for free, is also available. It also works for other 3rd party code generators, that use the TOTP algorithm.
Requirements
You need at least a 64-bit version of PHP 5.4 or HHVM.
Installation via Composer
Use Composer CLI:
Or add battlerattle/doorman
to your composer.json
:
Usage
This is a pretty basic example
Google Authenticator
In this example we use the Google Authenticator, which uses base32-encoded keys, that will be decoded internally.
Key Generator
This generator creates "Google Authenticator"-compliant keys:
References
- Better Security with Two Factor Authentication - presentation about functionality of Two Factor Authentication
- RFC 6238 - official description of the "Time-Based One-Time Password" algorithm
- Google Authenticator - authenticator for Android / iPhone / BlackBerry
- Duo Mobile - authenticator for Android / iPhone