follow the excellent guide:

mkdir /var/www/html/composer
cd /var/www/html/composer
php -r "copy('', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'THISWILLHAVECHANGEDBYNOW') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

su - root
cd /var/www/html/composer
mv composer.phar /usr/local/bin/composer

problem: there is not one central repository server that has all the available packages, no a “composer.lock” file points to a github repo:

from which a download will be performed.

so essentially it is like:

git clone

so why is composer needed in the first place?

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!