Registry / auth / sonata-project-google-authenticator

sonata-project-google-authenticator

JSON →
library2.3.1phppackagistunverified

Library to integrate Google Authenticator into a PHP project

composer require sonata-project/google-authenticator
INSTALL
IMPORT
SIG · SONATA-PROJECT-GOO
S
sonata-project-google-authenticator
authphpv2.3.1
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.

GoogleAuthenticator
use Sonata\GoogleAuthenticator\GoogleAuthenticator;

Generate a secret and current code

use Sonata\GoogleAuthenticator\GoogleAuthenticator; $g = new GoogleAuthenticator(); $secret = $g->generateSecret(); $code = $g->getCode($secret);
Debug
Known issues
breakingRequires PHP 7.2+ and ext/mbstring
fix
Upgrade PHP and install mbstring extension
affects: >=2.0.0
Upgrade
Version history
2.3.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
12
Resources
sonata-project-google-authenticator — pip install sonata-project-google-authenticator · libregistry