whopa/myotp

There is no license information available for the latest version (v1.0.1) of this package.

Integrate OTP system in your web application

Maintainers

Details

github.com/Whopa/MyOTP

Source

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/whopa/myotp

v1.0.1 2014-10-07 21:54 UTC

This package is not auto-updated.

Last update: 2025-10-21 12:54:07 UTC


README

Integra OTP en tus aplicaciones web con Laravel. Funciona con Google Authenticator y otras aplicaciones que soporten OATH (HOTP / TOTP).

Requisitos

  • Laravel 4.1.x

Instalación

Para instalar este paquete, agrega lo siguiente en tu archivo composer.json

require {
    "whopa/myotp" : "dev-master"
}

Luego ejecuta

composer install o composer update según sea el caso.

Luego abre el archivo config/app.php y agregar en el array providers

'Whopa\Myotp\MyotpServiceProvider'

Uso

El paquete define automáticamente Myotp como alias.

Para generar un key secreto.

$key = Myotp::userRandomKey();

Para generar el OTP en base a la Key

$otp = Myotp::generate($key, 30);