Skip to content

Releases: Vectorface/GoogleAuthenticator

v3.2: Better Parameter Support

31 Jan 21:39
Compare
Choose a tag to compare
  • Added a URI builder method to support currently known otpauth URI parameters
  • Internal re-factoring required to prevent code duplication in the new URI builder
  • Changes are backwards compatible

New URI builder usage:

$uriBuilder = (new \Vectorface\GoogleAuthenticator())
    ->getUriBuilder()
    ->secret("AABBCCDDEEFF")
    ->account("John Doe")
    ->issuer("Acme Corp.");

// __toString() allows using the URI builder in strings
$uri = "$uriBuilder";
// or
$uri = $uriBuilder->getUri();

// $uri in both cases is:
// "otpauth://totp/Acme%20Corp.:%20John%20Doe?secret=AABBCCDDEEFF&issuer=Acme%20Corp."

Supports secret, account, issuer, type ("totp" or "hotp"), algorithm ("SHA1" (default), "SHA256", or "SHA512"), digits (6 or 8), counter (HOTP only), and period (TOTP only) parameters.

v3.1

10 Jan 21:14
139fd0b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0...v3.1

v3.0

20 Apr 19:48
bf68799
Compare
Choose a tag to compare
  • Bump minimum PHP version to v7.3
  • Update endroid/qr-code to v4.0.0
  • Update phpunit to v9
  • Add support for PHP 8.0

v2.0

13 Oct 22:03
380b0f8
Compare
Choose a tag to compare
  • Bump minimum PHP version to v7.2
  • Update endroid/qr-code to v3.9.3
  • Update phpunit to v8
  • Drop TravisCI
  • Add GitHub Actions testing
  • Add parameter and return types

Hello World!

20 Sep 21:00
d56abb2
Compare
Choose a tag to compare

First release of this fork!