PHP

This page is out of date and needs reviewing.

PHP is needed to run various tools and is a useful thing to have installed in your host system.

We currently use PHP7.4 on our servers so it is useful to have a matching version locally.

You don't necessarily need PHP installed on your development machine as PHP is installed in the appserver Lando container.

If you do want to install it you can follow these instructions:

Linux

sudo apt-get install php7.4-cli php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-mcrypt php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-zip

MacOS

You will need homebrew installed first.

Use homebrew to install the version of PHP you want:

brew tap homebrew/versions
brew tap homebrew/php
brew install php74

Last updated: