Installation & Setup in PHP
From the PHP cheat sheet · Setup & Basics · verified Jul 2026
Installation & Setup
Installing PHP and setting up development environment
php
# Install PHP 8.3
# macOS (Homebrew)
brew install php
# Ubuntu/Debian
sudo apt update && sudo apt install php8.3
# Check version
php -v
# Start built-in server
php -S localhost:8000
# Install Composer
curl -sS https://getcomposer.org/installer | php🚀 PHP 8.3 brings major performance improvements
📦 Composer is the standard dependency manager
🔧 Built-in server perfect for development
⚡ PHP-FPM recommended for production