Skip to content

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.

Terminal window
curl -fsSL https://raw.githubusercontent.com/phm-dev/phm/main/scripts/install-phm.sh | bash
Terminal window
export PATH="/opt/php/bin:$PATH"
Terminal window
phm install php8.5-cli php8.5-fpm
phm use 8.5
php -v
Terminal window
phm install <package> # Install packages or tools
phm remove <package> # Remove packages or tools
phm upgrade # Upgrade all packages
phm list # List installed packages
phm search <query> # Search packages
phm info <package> # Show package details
phm use <version> # Set default PHP version
phm fpm start|stop|restart # Manage PHP-FPM
phm ext enable|disable <ext> # Manage extensions
phm self-update # Update PHM itself