Mostly documenting for myself, but these are the steps it took to get quickly up to speed in macOS with php, composer, docker for development.

Disable blocking apps from the internet:

sudo spctl --master-disable

Now, install the applications that we want from known sources.

  • Open Safari, Preferences, Websites, Downloads and change the default to Allow.
  • Visit and install barrier for Mac to allow using a single kb/mouse.
  • Visit and download and install docker desktop.
  • Visit and download and install Chrome.
  • Visit and download and install Firefox.
  • Visit and download and install VS Code.
  • Visit and download and install PHPStorm.
  • Cleanup all the non-used crap from the dock.
  • Turn off recently used applications in the dock.

Download and install kitty -

curl -L | sh /dev/stdin

Start a terminal window and run these commands (or paste them in)

# Install homebrew - for up to date instructions.
/bin/bash -c "$(curl -fsSL"

# Install composer
brew install composer

# Install latest php
brew install php

# Install docker and git
brew install docker-compose git git-flow

# Change the default memory limit for php or composer will barf, -1 means no limit
sed -Ei '' 's/(memory_limit = )[0-9]+M/\1-1/g' /usr/local/etc/php/7.4/php.ini 

# Add ssh keys
mkdir .ssh
chmod 0700 .ssh
vim .ssh/id_rsa # paste key in, save, exit.
chmod 0600 .ssh/id_rsa
ssh-add -K
ssh-add -l # to confirm the key is loaded