I have a few posts in mind that require a few of the same steps so I figured I would catalog them here. These should be things every developer regardless of wether you are more of a front end or backend developer. They are extremely easy to get setup now more than ever. There was once a point where I have to fight and wrangle some of these tools I'm looking at you PHP. The upside to having these few base things installed is adding tools like Bower front end package management, Grunt/Gulp/Broccoli for task running and Sass for making CSS more fun. So here we go lets install all the things!!!
Everything with a $ should be ran in the terminal without the ($).
# Verify Node is installed $ node -v # Verify NPM is installed $ npm -v
Ruby should be already installed in Mac OS X you can check Ruby
$ ruby -v
This is required to install anything that needs to be compiled from source code.
$ sudo xcodebuild -license
Mac OS X should have shipped with Git by default but we might as well upgrade it.
$ git --version
# As of 8/24/2015 $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Tap Homebrew PHP to install helpful PHP Tools easily.
$ brew tap homebrew/dupes $ brew tap homebrew/versions $ brew tap homebrew/homebrew-php
Install PHP as of this writing the current stable version is 5.6.11 but you should install the current version.
# php 5.6.x === php56 $ brew install php56
Add this to your
~/.zshrc, or other
$ export PATH="$(brew --prefix php56)/bin:$PATH"
Composer allows you to install PHP packages with ease. Much like
npm for Node.js and
gem for Ruby.
$ brew install composer
So that was easy wasn't it. Now you will have even less excuse to use command line tools to increase your productivity. Now you just need to switch from Bash to ZSH with OHMyZSH to really super charge your workflow.