text: #!/bin/sh
  
  # Exit script wit ERRORLEVEL if any command fails
  set -e
  
  INSTALLOPTS=""
  if [ "$1" == "production" ]; then
    INSTALLOPTS="-a"
  fi
  
  # Clear vendor cache
  rm -rf ../vendor
  
  # Setup composer
  # Hash update information - https://getcomposer.org/download/
  php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
  php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
  php composer-setup.php
  php -r "unlink('composer-setup.php');"
  
  # Optimise for package install speed
  php composer.phar -n global require -n "hirak/prestissimo"
  
  # Grab dependencies
  php composer.phar install $INSTALLOPTS --ignore-platform-reqs
  