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 getcomposer.org site:

$ curl -s http://getcomposer.org/installer | 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: , ,
0 comments

Trackbacks

  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

8 Jul

How to format hdfs in AWS Elastic Map Reduce

It’s insanely simple. Connect to your master node within AWS Elastic Map Reduce. Then you’ll want to connect to the hadoop cluster and reset the NameNode file handlers. That’s it. That’s how ...

14 May

How to use load data from s3 in to elastic map reduce

How to load data from s3 in to Amazon Elastic Map Reduce is fairly easy. The trick is to use s3n or s3 at the data ...

 

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 ...