Skip to content

Instantly share code, notes, and snippets.

@ashecret
Last active September 19, 2017 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashecret/2987f5fe2240d07a543832258f8c45fe to your computer and use it in GitHub Desktop.
Save ashecret/2987f5fe2240d07a543832258f8c45fe to your computer and use it in GitHub Desktop.
How to install PHP and Composer on a Mac with Homebrew

Install PHP an Composer

  • brew update
  • brew tap homebrew/dupes
  • brew tap homebrew/php
  • brew install php56
  • brew install composer

You can replace 56 with your preferred version, i.e. php71

To confirm successfull installation, run in terminal:

$ composer -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment