Reputation: 173
How do I install composer on my web server? Is it a directory that I need to include?
I don't understand where the below code goes:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
From: https://getcomposer.org/doc/00-intro.md
Upvotes: 1
Views: 7678
Reputation: 2375
The command curl -sS https://getcomposer.org/installer | php
gets the code located on https://getcomposer.org/installer
and sends it to PHP, PHP then runs the code on the given page. The code on that page will produce a composer.phar file in your CWD.
The command mv composer.phar /usr/local/bin/composer
moves composer.phar to be file /usr/local/bin/composer
see:
These are Linux commands and are meant to be ran on a Linux server.
Upvotes: 3