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

11 Dec

Design and Implementation of a Flexible Application Architecture

Here’s a link to the talk I gave at LAPHP meetup on creating a flexible application architecture using Laravel 4. The talk was based around principles of a SOLID architecture. Then going ...

7 Nov

Array list of all timezones

I needed an array of all the timezones so I could insert it in to a database seeder. So I created one off a list from wikipedia. Excel: (Download) TXT Flat File: ...

 

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