- search runs on PHP 8.3
To verify your local PHP version, run
php --version
Manage versions of PHP using the ondrej PPA
.
Install a specific PHP version with:
sudo apt install php8.3-cli php8.3-curl php8.3-mbstring php8.3-dom
Switch to a particular PHP version with:
sudo update-alternatives --config php
Manage versions of PHP using brew
. To check if you have PHP 8.3 installed, run:
brew ls --versions | grep '^php[ @]'
If you do not have PHP 8.3, install it with:
brew install [email protected]
If you are not on PHP 8.3, switch to it with:
brew unlink php@[current version]
followed by
brew link [email protected]
These tools apply to any PHP project we work on: