PHP code example of happyr / google-site-authenticator-bundle
1. Go to this page and download the library: Download happyr/google-site-authenticator-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
happyr / google-site-authenticator-bundle example snippets
new Happyr\GoogleSiteAuthenticatorBundle\HappyrGoogleSiteAuthenticatorBundle(),
bash
$ php composer.phar
php
$clientProvider = $this->get('happyr.google.client_provider');
$client = $clientProvider->getClient('google_drive');
// or don't use the client provider
$client = $this->get('google.client.google_drive');
// if you only have one token configured
$client = $this->get('google.client');