Ross ROSS = Recommend OSS · open-source software intelligence for agents

Spomky-Labs/otphp

:closed_lock_with_key: A PHP library for generating one time passwords according to RFC 4226 (HOTP) and the RFC 6238 (TOTP) observed · 2026-08-28

github.com/Spomky-Labs/otphp · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

93/100

  • Activity 95
  • Release rhythm 87
  • 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: 11.5
  • age_days: 4700
  • days_rel: 88
  • days_push: 32
  • n_releases_24m: 5

Full methodology

Adoption not part of the score

1488 stars · 159 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A PHP library for generating one-time passwords according to RFC 4226 (HOTP) and RFC 6238 (TOTP). It is compatible with Google Authenticator, FreeOTP, and similar apps.

Use cases

  • add two-factor authentication to a PHP application
  • generate TOTP codes compatible with Google Authenticator
  • implement HOTP one-time password generation
  • verify OTP codes during user login
  • provision 2FA secrets for authenticator apps

When to choose

  • you need standards-compliant HOTP/TOTP in a PHP project
  • you want compatibility with common authenticator apps
  • you need a lightweight MIT-licensed OTP library

When to avoid

  • you need full multi-factor authentication flows with WebAuthn or passkeys
  • your project is not in PHP

Facets

library · maturity stable

auth cryptography security security developer-tools web-development php otp totp hotp two-factor-authentication rfc-4226 rfc-6238 google-authenticator

1 source

Member repositories

RepositoryRoleHealth v2
Spomky-Labs/otphpmain93

For agents

markdown · JSON · MCP: product_card(name="Spomky-Labs/otphp")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem