Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 767 Bytes

install-help.md

File metadata and controls

22 lines (20 loc) · 767 Bytes

Install PHP & Composer using homebrew

Install PHP 8.3

Follow these steps to download php. You will download the base php package then install and reset to version 8.3.

brew install php
brew install [email protected]
# Change the version number in the following command to match the base php version number.
# To find the base version number run `php -v`
brew unlink [email protected]
brew link [email protected]
# Add path to zshrc for global access to 8.3 using php
echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/opt/homebrew/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc

Confirm your version of php by opening a new terminal and running php -v.

Install Composer 2.0

brew install composer

Confirm composer version using composer -v.