madesimple/twofactor
Library for two factor authentication
Maintainers
v1.2.0
2022-02-25 15:02 UTC
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: ^9.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 3214014275275e8c9f161333cfedfde361731e53
- Peter Scopes <peter.scopes.woop@gmail.com>
This package is auto-updated.
Last update: 2026-06-26 01:22:09 UTC
README
Library for two factor authentication.
Google Authenticator
How to use:
use MadeSimple\TwoFactor\GoogleAuthenticator\GoogleAuthenticator; $auth = new GoogleAuthenticator($secret); if (!$auth->$verfiy($code)) { // Block access } // Sign them in
