pmdevelopment/google-authenticator-bundle

Google Authenticator for Symfony2

1.2.0 2018-04-17 12:48 UTC

This package is auto-updated.

Last update: 2024-04-12 01:16:26 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.