PHPackages                             madesimple/twofactor - 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. madesimple/twofactor

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

madesimple/twofactor
====================

Library for two factor authentication

v1.2.0(4y ago)12.7k↓25%MITPHPPHP &gt;=7.1

Since Mar 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pdscopes/twofactor)[ Packagist](https://packagist.org/packages/madesimple/twofactor)[ RSS](/packages/madesimple-twofactor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

madesimple/twofactor
====================

[](#madesimpletwofactor)

[![PHPUnit](https://github.com/pdscopes/twofactor/actions/workflows/phpunit.yml/badge.svg)](https://github.com/pdscopes/twofactor/actions/workflows/phpunit.yml)

Library for two factor authentication.

Google Authenticator
--------------------

[](#google-authenticator)

How to use:

```
use MadeSimple\TwoFactor\GoogleAuthenticator\GoogleAuthenticator;

$auth = new GoogleAuthenticator($secret);
if (!$auth->$verfiy($code)) {
    // Block access
}

// Sign them in
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~604 days

Total

4

Last Release

1533d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.6

v1.2.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f5debe805bd94c42a82096125be82db6e76eb8da10b929fbf5b4b3531d50393?d=identicon)[pdscopes](/maintainers/pdscopes)

---

Top Contributors

[![pdscopes](https://avatars.githubusercontent.com/u/13329586?v=4)](https://github.com/pdscopes "pdscopes (8 commits)")

---

Tags

google-authenticatortwo-factor-authentication

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/madesimple-twofactor/health.svg)

```
[![Health](https://phpackages.com/badges/madesimple-twofactor/health.svg)](https://phpackages.com/packages/madesimple-twofactor)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M100](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

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

41721.2M117](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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