Installing Composer in Ubuntu and setting properly the command to the terminal

Well I needed to install composer in my Ubuntu even though the installation it’s very simple in the official composer page doesn’t tell you directly how to setting it to use it as “composer” in the terminal.

First install it with:
curl -sS https://getcomposer.org/installer | php

And just run this command
sudo mv composer.phar /usr/local/bin/composer

Now you can just run composer on your terminal and it’s working.


I took this information from the official page of composer and the way to setting the command from this Ask Ubuntu Page

I’m just making it easier for you 🙂

Advertisements

One thought on “Installing Composer in Ubuntu and setting properly the command to the terminal

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s