PHPGangsta/GoogleAuthenticator
PHP class to generate and verify Google Authenticator 2-factor authentication observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5288
- days_rel: n/a
- days_push: 855
- n_releases_24m: 0
Adoption not part of the score
2325 stars · 718 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library implementing TOTP (RFC 6238) for Google Authenticator two-factor authentication. It generates secrets and codes, verifies codes with clock tolerance, and produces QR code URLs for provisioning secrets.
Use cases
- add two-factor authentication to a PHP login system
- generate TOTP secrets for users to scan with Google Authenticator
- verify 6-digit one-time codes server-side
- show a QR code so users can enroll their authenticator app
- implement RFC 6238 time-based OTP in PHP
When to choose
- you need a small, dependency-light PHP class for TOTP 2FA
- you want a battle-tested library with a simple API for secret generation and code verification
When to avoid
- you need built-in replay protection or brute-force rate limiting (you must implement these yourself)
- you need HOTP counter-based OTP or advanced 2FA features like WebAuthn
- you are not working in PHP
Facets
library · maturity maintenance
auth security cryptography security web-development backend php totp two-factor-authentication google-authenticator rfc6238 otp qr-code
1 source
- readme: https://github.com/PHPGangsta/GoogleAuthenticator · fetched 2026-08-28 · c3d238267085
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| PHPGangsta/GoogleAuthenticator | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="PHPGangsta/GoogleAuthenticator")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem