Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.13 KB

day_01.md

File metadata and controls

40 lines (29 loc) · 1.13 KB

How to Install PHP on Mac and Windows

Mac

Step 1: Install Homebrew

Homebrew is a package manager for macOS. To install it, open the Terminal and run the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Step 2: Install PHP

Once Homebrew is installed, you can install PHP by running:

brew install php

Additional Resources

For more details, visit the official PHP installation guide for macOS: PHP Manual.


Windows

Step 1: Install Laragon

The easiest way to set up PHP on Windows is by using Laragon. Follow these steps:

  1. Download Laragon from Laragon's Website.
  2. Install Laragon and follow the on-screen instructions.

Step 2: Verify PHP Installation

Once Laragon is installed, PHP is ready to use. You can check the PHP version by opening the Laragon Terminal and running:

php -v

Additional Resources

Visit the Laragon Documentation for more information.


Happy coding!