pmdevelopment/google-authenticator-bundle

1.1.0 2017-06-19 13:01 UTC

README

Original: PHPGangsta/GoogleAuthenticator

Forked for Usage as Symfony2 Bundle and composer

Install

Add to composer:

  "pmdevelopment/google-authenticator-bundle": "dev-master"

Add to kernel:

  new PM\Bundle\GoogleAuthenticatorBundle\PMGoogleAuthenticatorBundle(),

Usage

         /* @var $ga GoogleAuthenticatorService */
        $ga = $this->get("pm.googleauthenticator");

For Examples see [example/example1.php]. As additional function use getQrCode() to get the Image.