Registry / auth / pragmarx-google2fa-qrcode

pragmarx-google2fa-qrcode

JSON →
library4.0.0phppackagistunverified

QR Code package for Google2FA, generating QR codes for two-factor authentication.

composer require pragmarx/google2fa-qrcode
INSTALL
IMPORT
SIG · PRAGMARX-GOOGLE2FA
P
pragmarx-google2fa-qrcode
authphpv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Google2FA
use PragmaRX\Google2FAQRCode\Google2FA;

Generate a secret key and inline QR code for Google2FA.

use PragmaRX\Google2FAQRCode\Google2FA; $google2fa = new Google2FA(); $secret = $google2fa->generateSecretKey(); $qrCodeUrl = $google2fa->getQRCodeInline('myapp', 'user@example.com', $secret);
Debug
Known issues
gotchaRequires the BaconQrCode library for QR code generation.
fix
Ensure pragmarx/google2fa-qrcode is installed with its dependencies.
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
pragmarx-google2fa-qrcode — pip install pragmarx-google2fa-qrcode · libregistry