fbpx

How to install composer

Updated Instructions

Composer has a pretty good page on how to install it. You probably want to use their link because the hash changes every once in a while. You can click here to go straight there: https://getcomposer.org/download/

We updated our instructions 12 September 2021 to include the latest hash and a added new section for learning resources:

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

then:

sudo mv composer.phar /usr/local/bin/composer

PHP Learning Resource

Dr. Jakok Sidoruk of jotensor contacted us about a learning resource their team has created for learning PHP, and we think it’s pretty cool:

https://jobtensor.com/Tutorial/PHP/en/Introduction

Reference

Share this article

Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top