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

7 Oct

October CMS How to replace component templates from plugins

How can you replace component templates from plugins? IE I want to replace the posts default template in the blog plugin with my own markup. Post List from the blog plugin – ...

7 Oct

October CMS set preview post length

October CMS is a brilliant new developer focused CMS. It reminds me of working on XenForo in it’s ease of creating add-ons. A very nice system. After configuring the blog I needed ...

 

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