Aller au contenu principal
← All courses

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 .test domains
  • πŸ”§ 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.yaml for 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