Skip to content

Latest commit

 

History

History
93 lines (63 loc) · 2.4 KB

File metadata and controls

93 lines (63 loc) · 2.4 KB

TOTPHog Logo

TOTPHog

TOTP Codes, Simplified

A self-hosted TOTP code manager for development and testing.
Like MailHog, but for 2FA codes.

PHP 8.3 Symfony 7.0 Docker MIT License


🐷 What is TOTPHog?

TOTPHog is a lightweight, self-hosted TOTP (Time-based One-Time Password) manager designed for development and testing environments.

Think of it like MailHog - but instead of catching emails, it manages TOTP codes. Perfect for testing 2FA flows without reaching for your phone.

⚠️ For development only - No authentication, tokens stored in plain JSON. Never use in production.


✨ Features

  • 🔐 Generate valid TOTP codes from secret keys
  • 📱 Import tokens from QR codes (otpauth:// URIs)
  • 🖥️ Clean web UI with real-time code updates
  • 🔌 Full REST API for automation
  • 📊 QR code generation for exporting tokens
  • 🐳 Single Docker container, zero config

🚀 Quick Start

Docker (Recommended)

docker run -d -p 8045:80 --name totphog damianovsky/totphog

Open http://localhost:8045

Docker Compose

    1. Clone the repository
git clone https://github.com/damianovsky/totphog.git
    1. Navigate to the project directory
cd totphog
    1. Start the containers
docker compose up -d

📖 Documentation

Full documentation is available in the `docs/` directory:


📄 License

MIT License - see LICENSE for details.


Made with 🐷 for developers who need TOTP codes without the hassle