Tag: php

  • How to switch between PHP versions on Mac OS X using homebrew

    How to switch between PHP versions on Mac OS X using homebrew

    I use docker for all the projects, but the other day I needed to run a composer command in my host machine to install a Drupal distribution which is not compatible with PHP 8.0, so I needed to switch the PHP version. And the steps to do so are: Install homebrew: https://docs.brew.sh/Installation Install the Brew…

  • How to co-install composer 1 and composer 2

    How to co-install composer 1 and composer 2

    If you followed the steps at How to set-up a Drupal or WordPress site locally using Docker to set-up a local Drupal 8 site using docker, you will find that the PHP container has composer2 and that Drupal 8 is not compatible with it. The easiest way to get composer 1 up and running when…

  • How to set-up a Drupal or WordPress site locally using Docker

    How to set-up a Drupal or WordPress site locally using Docker

    This article is not aiming to provide explanations about the tools that I use to set-up Drupal/WordPress sites, I think there is a lot of information available on the internet about them Docker, Traefik, Compose. The only goal of this post is to document the process that I follow since it is really easy, and…