Apple machines run a POSIX compliant UNIX variant, and the hardware is essentially the same as what you would find in a high-end PC. This simply means that the days when most of the guides on the internet were written from the perspective of a Linux user are long gone.

With the emergence of new tools and ports to the OSX platform, One would feel much more comfortable using a modern and robust platform, while using the same tools.

There are multiple options on the market: MacPorts, Conda, pkgsrc, … etc. But my personal favorite is HomeBrew, or brew for short, and that’s what I will be using on this tutorial.

First, let’s go ahead and install the binary (Ruby 2.0 should be available for El Capitan onwards)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Let’s start by the most commonly used packages :

brew install curl
brew install git

From here you can now set almost every piece of software up, depending on your favorite dev stack

PHP

# My PHP Setup 

brew install php72
brew install php72-intl
brew install php72-opcache
brew install phpunit
# Composer

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer

Cloud

brew install openshift-cli
brew install heroku

You can now look for packages that suit your needs by following these links : http://formulae.brew.sh and http://brewformulas.org or start writing your own !

class Wget < Formula
  homepage "https://www.gnu.org/software/wget/"
  url "https://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz"
  sha256 "52126be8cf1bddd7536886e74c053ad7d0ed2aa89b4b630f76785bac21695fcd"

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make", "install"
  end
end

That’s all for now, cheers.