ai-agent

google2fa – Add Secure OTP Login to Your PHP App

Boost your product’s security with google2fa’s Google‑Authenticator compatible OTP flow, perfect for founders building PHP services. 2.0k+ GitHub stars.

From the repo · “A One Time Password Authentication package, compatible with Google Authenticator.”

2,011 stars205 forksPHPGuide quality 9/10 · reviewed Oct 6Updated 8/15/2026100% free · open source
What it does

Adds time-based one-time password authentication to your application, compatible with Google Authenticator, to enhance security with two-factor authentication

When to use it
  • •When you need to secure user accounts with an additional layer of authentication beyond just passwords
  • •When integrating with services that require two-factor authentication for enhanced security
  • •When developing applications that handle sensitive user data and require robust authentication mechanisms
Ready-to-paste prompt
Google2FA::getQRCodeUrl('your_company', 'user@example.com', Google2FA::generateSecretKey())
Heads up: Make sure to store the secret key generated for each user securely, as losing this key will prevent the user from accessing their account
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/google2fa && curl -fsSL https://workflowstacks.com/api/skills/google2fa/claude-skill -o ~/.claude/skills/google2fa/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How google2fa – Add Secure OTP Login to Your PHP App works
Codeflow
Free to inspect

Google2fa – Add Secure OTP Login to Your PHP App is a small PHP project (~600 lines across 14 code files, plus 8 test files). Setup is light: install PHP, run one command. Last commit 2 months ago, MIT license, has a test suite.

Size
Small codebase
~600 lines · 14 code files · 5 min skim
Setup
Light setup
Install PHP, run one command.
Runs on
PHP
No API keys detected
PHP 97%Shell 3%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    composer.json
    Dependencies and the commands it exposes
  3. 3
    src/Google2FA.php
    Inside src/ — the main logic begins here
What's in each folder
src/Core code — the actual logic14 files
docs/Documentation1 files
.github/CI / automation (GitHub Actions)9 files
tests/Tests — proof it works8 files
READMEHas testsDocumentedCI checksMIT licenseUpdated 2 mo ago
Quick Actions
Details
Creator
antonioribeiro
Language
PHP
Category
ai-agent
Published
9/21/2014

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/google2fa.svg)](https://workflowstacks.com/skills/google2fa?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.