To run PHP on your computer, you have two easy options:
- XAMPP / Laragon / MAMP: All-in-one installers that give you Apache, PHP, MySQL, and phpMyAdmin in one click. Place your project inside
htdocs/and visithttp://localhost/your-folder. - PHP Built-in Dev Server: If PHP is installed in your terminal PATH, you can start a lightweight development server in any folder using
php -S.
ADVERTISEMENT