How to: Install Composer globally

Paul March 18th 2017

A quick reminder in a short blog post

Installing composer globally seems to be a common task for me when working with different VM's, servers etc, perhaps I should use vagrant a little more. Anyway, I always forget this command so here it is how to install composer globally under Debian, or probably any unix based OS. Assuming you have sudo or privileged access rights installing composer globally is just one command:

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Author Paul Technical Director

Technical Director & Co-founder of Gather. Paul is a Manchester born computer scientist with broad full stack web & mobile application skillset, he has helped shaped Gather's technology, and build many large scale web applications.