Installing Composer for Drupal On Linux

Pubblicato il: 23 aprile 2022
sul canale di: Easy Drupal
1,060
8

You can ask me for help with your Drupal site using my Fiverr gig here https://bit.ly/3yBWLWC

Please support the channel by using my eBay search website https://shopoftheworld.com its a Drupal site that is powered by eBay APIs and offers faster searching and filtering, its quite fun. Thanks


How to install composer on Linux so that you can use it to install Drupal and its dependencies.

Commands you will need

To install PHP and the bits you will need going forward (pre-requisites)

apt-get update
apt-get install php
apt-get install zip
apt-get install unzip
apt-get install git

To install composer follow the commands below - for the latest hash you must visit https://getcomposer.org/download/

like this

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

And then move composer to somewhere in your path like this sudo mv composer.phar /usr/local/bin/composer

You may or may not need SUDO to complete this

Any questions leave a comment and I can update the description if I have something wrong

I am a UK based Drupal consultant with 10+ years experience of Drupal 7, 8 and 9 configuration, development and environment architecture.

Available for contract or maintenance work drop me a message below if interested or use my Fiverr gig to send a request for help https://www.fiverr.com/share/L9EdW4


In questa pagina del sito puoi guardare il video online Installing Composer for Drupal On Linux della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Easy Drupal 23 aprile 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,060 volte e gli è piaciuto 8 spettatori. Buona visione!