PHM
PHM
One build. Thousands of installs.
A binary PHP package manager for macOS.
No Homebrew. No MacPorts. No compilation.
What Is PHM
Precompiled PHP
Built once
Installed instantly
macOS Only
Designed specifically for macOS
No cross-platform compromises
No Build Tools
No Homebrew
No MacPorts
No local compilation
Deterministic & Clean
No version conflicts
Native for your Mac
Always the same result
Why PHM Exists
Recompiling PHP on every laptop became normal.
Normal does not mean sane.
PHM follows the proven Debian pattern:
build once, distribute binaries, install instantly.
Installation
curl -fsSL https://raw.githubusercontent.com/phm-dev/phm/main/scripts/install-phm.sh | bash Then add to your shell profile:
export PATH="/opt/php/bin:$PATH" Quick Start
# Install PHP 8.5
phm install php8.5-cli php8.5-fpm php8.5-redis
# Set default version
phm use 8.5
# Verify
php -v Keep PHM up to date: phm self-update
Key Features
Platform Scope
PHM runs on macOS only.
This is a deliberate choice.
Linux already has excellent PHP repositories.
PHM solves the macOS gap.
Power does not come from endless recompilation.
It comes from building once — and sharing wisely.