evgen-dev / google-authenticator
Laravel/GoogleAuthenticator - generate and check OTP
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 213
pkg:composer/evgen-dev/google-authenticator
Requires
- php: >=8.2.0
- illuminate/support: ^8.0 | ^9.0 | ^10.0
This package is auto-updated.
Last update: 2026-01-08 16:19:58 UTC
README
Laravel 10.x simple Google Authenticator 2FA auth support.
Installation
Install using composer
composer require evgen-dev/google-authenticator
Add the provider to config/app.php
'providers' => [ EvgenDev\GoogleAuthenticator\GoogleAuthenticatorServiceProvider::class, ]
Using
use EvgenDev\GoogleAuthenticator\Facades\GoogleAuthenticator; GoogleAuthenticator::getCode('YOUR_SECRET_STRING'); GoogleAuthenticator::checkCode('YOUR_SECRET_STRING', 'YOUR_CODE'); GoogleAuthenticator::getQRCodeUrl('username', 'example.org', 'YOUR_SECRET_STRING'); GoogleAuthenticator::generateSecret();