whopa / myotp
Integrate OTP system in your web application
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/whopa/myotp
Requires
- php: >=5.3.0
- illuminate/support: 4.1.*
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);