Cara Menginstall PHP Composer di Ubuntu

Composer is used to manage.update,install PHP packages you need in Your PHP Project. if you're a laravel user, you will always be in touch with Composer.

Now how to install it  ? 

Install Composer 

Open your Terminal ( Ctrl+shift+T) :

Type this to install latest :
curl -sS https://getcomposer.org/installer | php
Or if you don't have curl:
php -r "readfile('https://getcomposer.org/installer');" | php
If the above syntax error, you may need to install php
sudo apt-get install php5-cli
Or if you have XAMPP for linux already, 
just manualy download here https://getcomposer.org/composer.phar  
put it in /usr/local/bin  
sudo mv composer.phar /usr/local/bin

Link your php on xampp with this : 

sudo ln -s /opt/lampp/bin/php /usr/local/bin/php


You Composer in now installed, to test it installed correctly : 
composer

 ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 1.0.0-alpha8 2014-01-06 18:39:59

Previous
Next Post »