Documentation
PHM (PHP Manager) is a binary PHP package manager for macOS. Forget about Homebrew, MacPorts, and local compilation. PHM downloads ready-made, precompiled packages and installs them in seconds.
Quick Start
Section titled “Quick Start”1. Install PHM
Section titled “1. Install PHM”curl -fsSL https://raw.githubusercontent.com/phm-dev/phm/main/scripts/install-phm.sh | bash2. Add PHP to PATH
Section titled “2. Add PHP to PATH”export PATH="/opt/php/bin:$PATH"3. Install PHP
Section titled “3. Install PHP”phm install php8.5-cli php8.5-fpmphm use 8.5php -vWhat’s Next
Section titled “What’s Next”- Installation — detailed installation instructions
- Shell Setup — bash, zsh, and environment variables
- Developer Tools — Composer, Symfony CLI, PHPStan
- Version Switching — per-project PHP versions with
.php-version - Web Servers — Symfony server and PHP-FPM configuration
- Configuration — directory structure and php.ini
- Available Packages — complete list of PHP packages
Available Commands
Section titled “Available Commands”phm install <package> # Install packages or toolsphm remove <package> # Remove packages or toolsphm upgrade # Upgrade all packagesphm list # List installed packagesphm search <query> # Search packagesphm info <package> # Show package detailsphm use <version> # Set default PHP versionphm fpm start|stop|restart # Manage PHP-FPMphm ext enable|disable <ext> # Manage extensionsphm self-update # Update PHM itself