PHPackages                             johnstyle/google-authenticator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. johnstyle/google-authenticator

AbandonedLibrary[Authentication &amp; Authorization](/categories/authentication)

johnstyle/google-authenticator
==============================

PHP 5 Google Authenticator

v1.0.8(11y ago)2214.1k↓62.5%2GPL-3.0PHPPHP &gt;=5.4.0

Since Sep 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/johnstyle/google-authenticator)[ Packagist](https://packagist.org/packages/johnstyle/google-authenticator)[ Docs](https://github.com/johnstyle/google-authenticator)[ RSS](/packages/johnstyle-google-authenticator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

\#Google-Authenticator [![Flattr this](https://camo.githubusercontent.com/d72e55c5c5baef1656773d3bb52c77a2566196f35e85f394f3196e2f748d679e/68747470733a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](https://flattr.com/submit/auto?user_id=Johnstyle&url=https%3A%2F%2Fgithub.com%2Fjohnstyle%2Fgoogle-authenticator%2F)

[![Latest Stable Version](https://camo.githubusercontent.com/964514cadb2fc8dde74dab59e985fd4f102ec4f9b5b5f69785fd43baf7ae0787/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e7374796c652f676f6f676c652d61757468656e74696361746f722f762f737461626c652e706e67)](https://packagist.org/packages/johnstyle/google-authenticator)[![Total Downloads](https://camo.githubusercontent.com/2a78625ea4c74b3ca373ed285eaf558afb89b247f13c00117865e55144df0893/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e7374796c652f676f6f676c652d61757468656e74696361746f722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/johnstyle/google-authenticator)[![Build Status](https://camo.githubusercontent.com/0bdd8e3041bb3277a8b0afce085fe344321aa4f427950e590cdb2b775092698b/68747470733a2f2f7472617669732d63692e6f72672f6a6f686e7374796c652f676f6f676c652d61757468656e74696361746f722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/johnstyle/google-authenticator)[![Dependency Status](https://camo.githubusercontent.com/48c4103f7018ea630702c27f200e57af0fa69f5f81f398c4c124d06658afddb7/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534313434323636396531363232353462343030303065352f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/541442669e162254b40000e5)[![SensioLabsInsight](https://camo.githubusercontent.com/37f65d75332d206ba5d7a6837c531274d9b10eaf1f292cfd1db64064091b10d7/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31636130326436352d383631302d343461632d626134302d3834333930623038373362352f6d696e692e706e67)](https://insight.sensiolabs.com/projects/1ca02d65-8610-44ac-ba40-84390b0873b5)

Google Authenticator

\##Usage

\###Step 1 - Register application

```
$google = new GoogleAuthenticator();

// Register application
echo $google->getQRCodeUrl('MyApplicationName');

// Save secret Key
$secretKey = $google->getSecretKey();
```

\###Step 2 - Verify Code

```
$google = new GoogleAuthenticator($secretKey);

// User submit code
$userSubmitCode = '';

// Verify Code
if ($google->verifyCode($userSubmitCode)) {

    // OK
}
```

\##Demonstration [Demonstration](http://github.johnstyle.fr/repository/johnstyle/google-authenticator/)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 96.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~15 days

Recently: every ~29 days

Total

9

Last Release

4151d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1837566?v=4)[Jonathan S.](/maintainers/johnstyle)[@johnstyle](https://github.com/johnstyle)

---

Top Contributors

[![johnstyle](https://avatars.githubusercontent.com/u/1837566?v=4)](https://github.com/johnstyle "johnstyle (29 commits)")[![kornrunner](https://avatars.githubusercontent.com/u/725986?v=4)](https://github.com/kornrunner "kornrunner (1 commits)")

---

Tags

authenticationauthenticatorgooglephpqrcodetwo-factortwo-factor-authenticationgooglephp5authenticatorPHP 5

### Embed Badge

![Health badge](/badges/johnstyle-google-authenticator/health.svg)

```
[![Health](https://phpackages.com/badges/johnstyle-google-authenticator/health.svg)](https://phpackages.com/packages/johnstyle-google-authenticator)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[hybridauth/hybridauth

PHP Social Authentication Library

3.4k8.5M94](/packages/hybridauth-hybridauth)[robthree/twofactorauth

Two Factor Authentication

1.2k10.5M66](/packages/robthree-twofactorauth)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

42121.2M118](/packages/league-oauth2-google)[kreait/firebase-tokens

A library to work with Firebase tokens

24040.8M14](/packages/kreait-firebase-tokens)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
