How to install Composer on Linux?

Posted 7 months, 3 weeks ago
How to install Composer on Linux?

Composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries. Source: Wikipedia style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-4414117620201366"
data-ad-slot="7237412877">



> php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"


> php -r "if (hash_file('sha384', 'composer-setup.php') === 'baf1608c33254d00611ac1705c1d9958c817a1a33bce370c0595974b342601bd80b92a3f46067da89e3b06bff421f182') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-4414117620201366"
data-ad-slot="3299550751">



> php -r "unlink('composer-setup.php');"


> alias composer='/usr/local/bin/composer' style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-4414117620201366"
data-ad-slot="3445469534">