How to Install Composer on Mac OS

A short tutorial on how to install composer on your mac laptop environment. Super Simple and Fast. You will be running composer in less than a minute.

This is a short tutorial on how to get started with composer to install the dependencies when you do not have an environment that has Composer. Although composer has good documentation i had trouble getting started on my mac environment.

Composer Documentation: https://getcomposer.org/ 

Getting Started - Install Composer

curl -sS https://getcomposer.org/installer | php

 

Running Composer

First select a folder that contains a composer.json file in order to download and install dependencies. 

cd /myfolder //folder that contains composer.json
php /usr/local/bin/composer.phar install