https://github.com/pdscopes/twofactor
Library for two factor authentication
https://github.com/pdscopes/twofactor
google-authenticator two-factor-authentication
Last synced: 5 months ago
JSON representation
Library for two factor authentication
- Host: GitHub
- URL: https://github.com/pdscopes/twofactor
- Owner: pdscopes
- License: mit
- Created: 2017-03-10T07:52:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T15:08:45.000Z (over 4 years ago)
- Last Synced: 2025-10-23T05:47:25.754Z (8 months ago)
- Topics: google-authenticator, two-factor-authentication
- Language: PHP
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# madesimple/twofactor
[](https://github.com/pdscopes/twofactor/actions/workflows/phpunit.yml)
Library for two factor authentication.
## Google Authenticator
How to use:
```php
use MadeSimple\TwoFactor\GoogleAuthenticator\GoogleAuthenticator;
$auth = new GoogleAuthenticator($secret);
if (!$auth->$verfiy($code)) {
// Block access
}
// Sign them in
```