https://github.com/raphaelvserafim/google-authenticator
Google Authenticator PHP
https://github.com/raphaelvserafim/google-authenticator
authenticator google php
Last synced: 6 months ago
JSON representation
Google Authenticator PHP
- Host: GitHub
- URL: https://github.com/raphaelvserafim/google-authenticator
- Owner: raphaelvserafim
- Created: 2023-01-25T14:17:18.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T14:44:04.000Z (over 3 years ago)
- Last Synced: 2025-02-01T20:45:13.511Z (over 1 year ago)
- Topics: authenticator, google, php
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Authenticator PHP
## CONTATO
## Example of use:
```php
use Cachesistemas\GoogleAuthenticator;
include_once 'vendor/autoload.php';
$ga = new GoogleAuthenticator():
```
### create Secret
```php
$secret = $ga->createSecret();
```
### get QRCode Google Url
```php
$qrCode = $ga->getQRCodeGoogleUrl("", $secret,"");
```
### verify Code
```php
$check = $ga->verifyCode($secret, "", 2);
```