Installing Composer with XAMPP(Linux)

composer-php-dependency-manager

Composer is PHP dependency manager

As root, type this command

curl -s https://getcomposer.org/installer | /opt/lampp/bin/php

If it’s succesfull, you should see something like this

[root@localhost ferry]# curl -s https://getcomposer.org/installer | /opt/lampp/bin/php
#!/usr/bin/env phpAll settings correct

for using ComposerDownloading...Composer successfully installed to: /home/ferry/composer.phar

Use it: php composer.phar

yeay

Yaaaayyyy……

When you run Composer with XAMPP(Linux) in terminal, use PHP that comes with XAMPP. Ex., instead of typing

php composer.phar

,you type

/opt/lampp/bin/php composer.phar

For easier access, just create bash alias for it.

Advertisements

Tags: , , , ,

About Ferry T.H.

I'm just your fellow human being.

3 responses to “Installing Composer with XAMPP(Linux)”

  1. Nestor Hugo De Haro Gutiérrez says :

    Interesting code for Xampp Ubuntu developers…thanks for the code

  2. Lekhnath says :

    Helped a lot, thanks for sharing.

  3. blacmoon says :

    You saved my time…! Thanks man…!

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

%d bloggers like this: