Setting up Composer globally for Laravel 4

Author :Andrew     Category : Linux, PHP     6 Jan | 3 Comments

An easy way to set up composer globally is to follow the instructions on site:

$ curl -s | php
$ sudo mv composer.phar /usr/local/bin/composer

Now I can use composer by invoking just the composer command.

Optional way to do it, is to set up an alias:

alias composer='/location/of/the/composer.phar'
Tags: , ,


  1. [...] That’s if you have setup composer to be accessed globally. [...]

  2. [...] Let’s reload the autoload. (Assuming composer is an alias.) [...]

Latest News

23 Jan

How to call a python function by using a variable python

I needed to, in a programmatic way, determine the function name and then call the function. Here’s an example use case. I have a bunch of functions called, ["function1", "function2", "function3", "function4", ...

23 Nov

Mozilla Developer Edition

I recently discovered Mozilla Developer Edition. So far I’ve love it’s inline ability to edit css. It’s an entirely natural way to tweak the css on the ...


I’m a Engineering Manager currently working at NinjaMetrics where I lead a team developing predictive anayltics using various technologies including AWS, Debian, PHP, Java, Hadoop, MySQL, and many more. I’m heavily involved in all aspects of ...