Phage
Par HappyToDev
π¦ Phage - Modern PHP Development Environment
π Sponsorware β Phage becomes 100% open source when we reach 50 sponsors. Become a sponsor β
Phage is a modern, multiplatform PHP development environment built in Go with FrankenPHP integration. Think of it as an open-source alternative to Laravel Herd or Laragon.
β¨ Features
π Runtime & Server
- π FrankenPHP Integration - Lightning-fast PHP 8.4.17 with Caddy server
- π Multi-PHP Versions - Run PHP 8.4, 8.3, 8.2, 8.1, 8.0, 7.4, 7.3, 7.2, 7.1, 7.0, 5.6 simultaneously
- β‘ Hybrid Architecture - FrankenPHP for PHP 8.4 performance, PHP-FPM for older versions
- π― Smart Backend Selection - Automatic fallback from FrankenPHP to PHP-FPM when needed
- π Multi-Project Support - Run multiple PHP projects with different versions simultaneously
π§ Project Management
- π Built-in Proxy - Automatic routing via custom
.testdomains - π§ Auto DNS - Automatic domain resolution (via dnsmasq)
- ποΈ Auto-Detection - Automatically detects new PHP projects in real-time
- β‘ Auto-Start - Newly detected projects start automatically without restart
- π Project Configuration - Per-project
phage.yamlfor custom settings - π Project Templates - One-click creation: Laravel, Symfony, Laravel + Filament v4, WordPress, CakePHP, Drupal, PHP Vanilla
- π Port 80 Helper - Optional privileged daemon for native port 80 access
ποΈ Database Support
- ποΈ MySQL Integration - Built-in MySQL management (no system MySQL required)
- π PostgreSQL Support - Built-in PostgreSQL with multiple versions
- π¦ SQLite Support - File-based SQLite database management
- ποΈ Database CLI - Interactive shells for all databases
π Development Tools
- π Built-in Debugger - Zero-configuration debug system (Phage Debug)
- Real-time WebSocket-based UI with dark theme
- Caller tracking (file, line, method)
- IDE integration (VSCode, PHPStorm one-click navigation)
- Interactive tree views for complex data structures
- SQLite persistence for debug history
- Methods:
log(),dump(),table(),json(),http(),exception(),trace(),sql(),measure()
- π Advanced Filtering & Search - Find and analyze debug events
- πΎ Persistent History - Debug data stored in SQLite database
π Sharing & Tunneling (v0.9.1+)
- Public Tunnels - Share projects with team members
- π Cloudflare Tunnel - Enterprise-grade tunneling
- π Pinggy Tunnel - Fast, lightweight alternative
- One-click URL copy and browser open
- Live tunnel status in Dashboard
- π¨ Mailpit Integration - Local email testing without external SMTP
- Intercept all PHP mail() calls
- Web-based email viewer
- Test email delivery in development
ποΈ Project Preview (v0.9.1+)
- Live Preview - See project changes in real-time
- Embedded iframe preview in Sites dashboard
- Toggle between preview and full browser view
- Auto-refresh on file changes
- Works with local ports and tunnel URLs
π» System & Experience
- π» Cross-Platform - macOS, Linux, and Windows support
- Platform Abstraction Layer - Unified service and DNS management
- macOS: launchctl + dnsmasq
- Linux: systemctl + dnsmasq
- Windows: Windows Services API + hosts file (native, no WSL)
- π¦ Zero Configuration - Works out of the box
- π No Root Required - Run without sudo after initial setup
- π¨ Modern UI - Beautiful, intuitive command-line interface
π Requirements
- macOS: macOS 12+ (Apple Silicon or Intel)
- Linux: Ubuntu 20.04+ / Debian 11+ / Fedora 35+
- Windows: Windows 10+ (native support via hosts file management)
-
Phage v0.19.1 MacOS
-
Phage v0.19.1 Windows