install composer on linux

# The following method has been tested on Ubuntu 20.04
# But i think it should work fine with any other distribution

# Ensure you're on Desktop, to prevent issues with permissions
cd ~/Desktop

# Download the installer script
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

# Verify intergrity to check whether an error happened during the fetch
php -r "if (hash_file('sha384', 'composer-setup.php') === '8a6138e2a05a8c28539c9f0fb361159823655d7ad2deecb371b04a83966c61223adc522b0189079e3e9e277cd72b8897') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

# Download composer script, which is the actual composer file
php composer-setup.php

# Remove the installer script as it's no longer needed
php -r "unlink('composer-setup.php');"

# To use composer globally, it's a good idea to move it to the path
# /usr/local/bin
sudo mv composer.phar /usr/local/bin/composer

# Try running composer to see if everything works fine
composer -V
# If you see the following output, then you're good to go:
# Composer version 1.10.10 2020-08-03 11:35:19

4.3
10
Alkasm 110 points

                                    // Adding permissions after installing Composer on Mac OSX
sudo chmod 755 /usr/local/bin/composer.phar

4.3 (10 Votes)
0
3
3
Colum Paget 115 points

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

3 (3 Votes)
0
0
0
Noodles 90 points

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

0
0
4.57
7
Adam w 100 points

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

4.57 (7 Votes)
0
4.18
8
Kevmac 105 points

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

4.18 (22 Votes)
0
4.33
9

                                    // Adding permissions after installing Composer on Mac OSX
sudo chmod 755 /usr/local/bin/composer.phar

4.33 (9 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
php composer install linux composer.phar php composer install linux how to run composer install on linux server where to find composer for php linux installing composer in ubuntu install php composer linux composer on mac commands to run to install composer in linux commands to run to install composerin linux intall composer in linux how to install composer ubuntu instalar composer en windows terminal install composer install composer install install composer 1 windows using composer on linux composer install envoy how to composer in mac download composer for linux what is the use of composer install linux composer global install install composer globally on linux php composer for linux how to install php composer in windows 10 linux get composer install composer on linux install php and composer how to install a composer package globally install composer composer linux macos install composer reinstall composer mac setup php composer composer mac install installing composer on mac how to install php composer on linux install composer command to project linux set up composer php install composer command composer 1 install linux install composer ubuntu terminal install composer in linux server how to use composer in terminal to install and use package where composer is installed in windows composer install on linux composer latest install ubuntu instalar o composer linux How to install a library in composer composer download linux linux setup composer download composer and install how to install composer on termux how to intall composer in project install php via composer get composer linux linux server install composer globally installer composer sur mac composer installing for window 10 php composer to composer ubuntu how to reinstall composer in window install composer shell composer.phar install package linux install composer 1 install composer 1 and 2 mac composer installation linux composer instal mac composer linux download install library composer composer2 instalar linux composer install on mac os php composer installing in linux how to install composer globally in windows linux installer composer install composer on asws linux 2 install composer command line how to create composer on linux mac os download composer composer php linux install install composer to linux composer install composer.js install composerlinux how to install composer package with version download install composer on linux server install composer on ubuntu globally instal composer wget can i install composer using terminal install composer in php project install composer on mac globally how to install package using composer windows install composer globally composer install linux server Composer how to install on mac linux installation composer linux install php and composer installing composer on terminal how to install a composer php install composer in mac globally how to download composer package manager on mac linux server install composer where composer.phar in composer installation script download how to install composer in windows 10 using cmd install composer synology instal composer from linux install composer on linux ubuntu php how to install composer how to install via composer php install composer for a project install library trough composer Install this library through composer composer on windows 10 cmd install composer install a php library with composer install composer on windows 7 with installer composer install for mac install composer globally in linux how install composer globalement manually install composer package how to manually install composer on linux how to insall composer cmd install composer terminal windows composer install in terminal composer install in cmd windows 10 composer install in cmd composer installin cmd how to install composer in elementary os linux command install composer 2 reinstall composer how to install composer in server install composer linux command line installer composer windows 10 how to download composer for windows installing composer with version manually setup composer-stable.phar how to download composer on linux how to download composer instalal composer linux composer for ubuntu instalar composer mac php composer.phar mac how to install composer in windows 10 composer download using command how to install a php library with composer composer install from cmd what command after composer install install composer.phar install composer on a server install composer in project php installing composer version 1 run composer install how to install composer version 1.10.10 command for install composer how to install composer in terminal composer download for mac install composer using php command install composer using cmd instalar composer en mac linux php composer install how to use composer installer install composer packages install composer without phar download composer package manually How to install composer in linux using terminal how to install composer via cmd composer 2 install mac get composer.phar install composer in your project composer on linux inctall composer on linux install composer in a project composer install in macos install php composer in linux download composer for macos linux where is composer.phar use composer instead of php composer.phar composer install --with how to install composer globally in windows 7 whre is composer.phar on linux composer install command composer install terminal install composer in project instalar composer en linux how to install composer from my computer setting up composer on windows composer install on mac properly install composer on mac catalina instal composer on mac how to install php composer in windows 7 how to install composer in php which composer command on mac composer on ubuntu php linux install composer 2 composer installation how to install composer through cmd php composer.phar linux to composer how to install composer manually on ubuntu instalar composer linux install php composer on ubuntu install composer using command line install composer 1.10 install composer 1.10 windows cmd composer for mac mac install composer globally installing composer on windows use composer instead of composer.phar How to use Composer to download packages on windows composer in linux download composer for mac os install composer ubuntu setup composer mac install composer package manually use php composer.phar as composer commande composer install download composer for mac how to install composer globally in windows 10 how to install composer in windows using cmd how to create a composer installer composer ubuntu mac os install composer instalando com composer composer on ubuntu install composer globally linux ubuntu composer install with composer version terminal how to install composer install composer 1 ubuntu install composer globally install composer globally mac os install composer ubunttu composer.phar to composer install composer on ubuntu server mac composer version install composer in ubntu run composer ubuntu install composere composer location windows how to install composer php install composer on redhat linux composer install location install composer in ubuntu server ubuntu install install composer in ubuntu 20 composer install ubuntu 20.04 composer install command for linux install composer on macos install composer ubuntu server install composer en windows composer global install mac install composser installing behat with composer install composer using terminal installing composer on ubuntu 20.04 composer for windows check if composer is installedon mac instrall composer globaly on android how to run composer updates in ubuntu php composer.phar -vvv How do I download Composer for Mac? where should i install composer how to intsll composer on windows setting up composer ubuntu 18 composer install not working install composer php on windows mac os update composer command line installing composer php installing composer on ubuntu 18.04 with curl installer composer ubuntu 20.04 composer install all run composer command in php how to install composer manually composer isntall mac install composer ubuntu 20.04 commond for install composer ubuntu check where composer is installed linux my iuser can use composer install composer isntall ubuntu ubunto install composer how to install composer by cmd install composer 2 in apache composer insall windows sudo composer install composer where composer mac versio composer install ubuntu php 7.3 where is global composer installed ubuntu download composer in ubuntu19.06 composer install global mac os install composer for windos install composer zorin install and use php composer on ubuntu istall composer ubuntu composer install on ubuntu how to install composer in ubuntu 16.04 composer en linux ubuntu php composer install manually download composer mac ubuntu root install composer win10 composer phar directory linux .composer apache composer install composer install linux executable mac osx update composer ubuntu 18.04 install composer How do I install composer globally in Windows 10? install composer 2.0 ubuntu terminal check composer version ubuntu install composer cmd windows install composer 1 mac composer windows 10 install composer dependencies windows coposer install mac php install composer ubuntu linuzx install composer.json file composer install on xamppp how to globally install composer on mac install composer on server installer composer linux where should i install composer? install composer terminal mac how to install composer in ubuntu 20.04 how to install composer for php test composer installation composer versions command composer cannot found ubuntu' install new composer linux sudo composer version is differnet ubuntu install composer 1.10 instalar laravel composer ubuntu composer.phat location in ubuntu composer global packages location linux composer install linux ubuntu update composer mac download composer mac how to find where is composer located in ubuntu how to set up composer install composer viersion 1.0 in ubuntu where is composer add composer in path mac composer where to install on mac composer package manager composer install ubtuntu update composer in ubuntu 18.04 composer download in linux how to install a composer composer.phar global ubuntu ubuntu 18.04 install composer 2 ubuntu install composer php sudo apt-get composer install composer 1.3 on ubuntu shell script install composer install php composer in ubuntu install composer ubuntu 1.91 where root compoer json in ubunut composer install ubunut download composer ubuntu 18.04 composer download ubuntu 18.04 composer install command ubuntu 18.04 install composer mac brew open composer folder in mac terniman add composer in ubuntu php composer install ubuntu php and composer composer macos php composer.phar install mac os x install composer.phar linux globally install composer on windows without php install composer 2 ubuntu instal composer mac add composer global to path ubuntu composer instal mac os Command 'composer' not found, but can be installed with: how to check composer is installed or not in cmd insatll composer 2 on mac install composer arch linuc install composer linux ubuntu ubuntu composer 2 composer 2 install ubuntu composer installation in ubuntu install composer2 globally sudo compose Install composer ubuntu 18.04 upgrade composer version ubuntu install composer 1.10 ubuntu install composer 2.0 ubuntu 18.04 install latest composer ubuntu 18.04 composer setup for windows run composer in cmd composer install ubutu get composer mac install composer from start install composer globaly composer install guide install composer via cmd insall php composer install composer sudo install composer ubunut Install verified composer on ubuntu Installer verified composer on ubuntu installer corrupt composer ubuntu 18.04 sudo apt-get install composer 2.0 ubuntu install composer installer corrupt how to update version composer in ubuntu how to update composer in ubuntu install composer linux apt get raspberry pi install composer linux apt-get global vendor location ubunto installer corrupt composer ubuntu composer install step by step how to install composer on my ubuntu 18.04 where composer is installed win10 where composer is installed install composer ubntu bin composer install composer ubuntu 18 windows install composer via composer.phar windows 10 how to install composer phar version composer php linux using composer php composer install limux where is .composer mac how to install composer 2.0 tutorial composer how to install update composer version in ubuntu install via composer windows installation of composer run full path composer install composer install from project linux composer install upgrade composer via apt apt upgrade composer cmd composer php install compoer 2 update composer ubuntu upgrade to composer 2 ubuntu command install composer ubuntu composer install install phar sudo apt install composer command to install composer in ubuntu linux composer install ubuntu composer install bin composer a dependency manager for php ubuntu php composer composer macos setup ubuntu 18.04 install latest composer php install composer windows composer install cmd how to install composer to run php php composer getting started mac where to run composer install composer apt install start composer on mac update compoer ubuntu mac upgrade composer mac update composer how terminal download composer and package is composer.phar the same as composer ubuntu server update composer version 2 ubuntu server update composer version composer.phar location ubuntu install composer on localhost how to check composer in pc composer 2 linux make composer.phar global update to composer 2 in ubuntu macbook install composer install composer cmjn check version composer setup composer php instal composer windows how to upgrade composer version in ubuntu composer upgrade ubuntu ubuntu install omposer update composer ubuntu apt how to update composer version in windows if i download composer locally can I then move it to bin how to update composer using terminal ubuntu composer update how to download composer for php find composer version linux server composer install install compposer update composer version mac composer version command ubuntu install composer for php linux install composer globally sudo php composer.phar install download and install composer in windows composer global update windows how to install on composer composer phar install composer update command in ubuntu install composer linnux curl commposer php composer.exe location how to install composer.json in linux how to install composer.json linux composer install in folder updating the composer ubuntu php composer check version install composer global cli mac inst all composer apt install composer upgrade composer mac os how to upgrade composer mac os composer setup windows 1.10.17 install composer 1.7.1 commande ubuntu composer .bash_profile mac php composer install windows how to check composer version in cmd windows 8 composer version run cmd sudo php composer-setup.php composer windows download how to install composer on mac from terminal Use it: php composer.phar installing composer 2 on mc command line update composer version in mac update composer on local machine check if composer on mac install composer through bash php composer-setup.php --version php composer-setup.php version isntall composer version composer intall in linux apt composer 2 php download composer update composer ubuntu globally install composer linux server how to move composer.phar globally in ubuntu install composer 2 on ubuntu upgrade composer ubuntu upfrade composer ubuntu update your composer package on ubuntu update your composer on ubuntu install composer sur window check composer version in ubuntu install composer powershell update composer version locally mac move composer to bin ubuntu upgrade composer how to install composer in linux server composer install -vvv install composer ubunto reinstall composer from cli php linux download composer.phar mac os x update composer mac os update composer install composer 2.0 ubuntu installl cmposer mac composer insaller bash upgrade composer mac install composer 2 linux install composer in terminal install composer in linux curl composer setup mac php json ubuntu install update composer on mac composer command line install get composer version composer installation in windows install compose update composer via terminal curl install composer how to download composer php for mac composer.phar location terminal run composer composer linux install composet composer-setup.php how to update coposer on windows how to updage composer on mac php composer setup install compser how to update composer in cmd can't run composer packages from terminal update composer 1 to 2 ubuntu composer install with sudo composer install on linux ? composer update on mac how to update composer version in ubuntu download composer exe install composer ubuntux php windows composer how to install composer linux istall composer linux mac install phar composer reinstall MAC install composer in macos php run composer composer installation windows compose executable how to update composer in ubuntu 18.04 apt-get install composer how install composer on windows what is composer.phar how to install composer on mac yosemite 10.10 install composer in current directory how to check composer version in ubuntu install latest comoser update composer version via apt get update to latest composer version in ubuntu install composer globally macos install composer manually macos install composer php windows 10 run composer from directory instal composer in ubuntu install composer in mac os install composer with powershell composer update ubuntu compoer install composer install php mac install composer update composer download manually install composer on linux server composer install in windows composer global install windows composer global instal composser apache upgrade composer on Mac how to install composer on linux download composer with cmd how to install composser how to installl composer windows download composer windows install composer php mac windows install composer install composer command line ubuntu how to check composer version in windows compoesr install globlay how to install composer-setup.exe install composer macosx Digital Ocean instaling composer in Ubuntu 18 how i can install composer in ubuntu composer phar installing composer on mac using sudo moving composer on mac installer composer change composer installed from local to global on mac install composer for windows 8.1 64 bit install php using composer composer full installation where should composer be installed windows where should composer be installed install composer version composer install liux install omposer how to install composer in windows install composer for ubuunntu composerr install composer location linux install composer in ubunut install composer macos install php and composer windows how to run composer php macos how to run composer php composer and php windows install php composer zip how to install composer windows composer install locally how tto installlayrn linux composer update how to install compuser using cli composer install php location how to install composer in windows 7 using cmd see if composer is installed how to install composer in a project install composer unix composer install -no-script composer for linux composer install globally ubuntu cmposer install linux install composer in windows 10 using cmd how to install composer on windows 10 global install composer in ubantu install composre php composer verify installer how install composer in windows 10 install global composer how to install composer mac install composer globally in mac where compsoer install php composer.phar install command composer .phar install composer.phar install location in mac windows install composer command line how to check composer is installed or not sudo aptget composer composer installation path php composer.phar to composer composer install global ubuntu install composer php install latest composer in ubuntu composer cli install install php composer windows command line composer install compser install composer.phar install install composer globally ubuntu osx install composer how install composer in windows compoer cli install how to downlaod compoer php how to run composer in php update php composer php composer location install composer for windows install compose ubuntu composer guide ubuntu composer-setup.php install mac how to install composer for windows 10 how to install composer on ubuntu php composer install on windows download the composer installer (.exe) how to install a different version of composer windows 10 putty install composer window command composer install how to install with composer linux composer php composer compoer install in windows how to install composer windows 10 composer specifiy php exe windows 10 install composer install composre ubuntu no mac install composer composer install globally windows 10 composer installation global getcomposer install golbally install composer How to install php in project composer coposer install how to check if composer is installed compoeser install where is composer installed composer install in linux comoposer install install composer php windows install composer on linux check whether composer is installed php install via composer composer ubuntu install install composer in ubuntu install composer in windows 10 install using composer where is composer.phar installed composer install linux server install composer to long install composer on globally mac composer linux shell composer install in mac install composer to directory how to install composer in php project path of composer installation in ubuntu get composer install location composer installation directory on ubuntu install composer ubuntu desktop composer install in ubuntu php composure local composer install global install composer ubuntu globally ubuntu check composer version ubuntu update composer install php composer packages using command line check if composer is installed how to know if composer is installed on mac install composer on ubuntu mac composer install install composer php macOS what is composer in php composer install ubunto install composer 18.04 install composer windows to without php update composer ubuntu 18.04 composer install windows 10 composer php in bin mac install composer mac globally how to start composer php composer install ubuntu 18.04 How to install composer on mac os install composer on mac os how to install the composer in project ubuntu sudo apt-get install composer install composer on ubuntu 18.04 install and run composer via docketfile install composer via docketfile install composer on running server check the composer version installed in local composer install on windows php composer windows how to install composer ubuntu install composer on server linux composer php install composer on ubuntu 18 windows 10 install composer globally mac composer global install ubuntu install php composer install composer sur mac terminal windows install compoer globally how to check if composer is installed on windows composer run install namesco composer install ubuntu install composer how to install server with composer composer in php how to install composer in linux install composer in linux php composer install is composer installed install composer ubuntu 18.04 compose install install composer from phar composer installer installing composer on ubuntu composer latest version ubuntu how to install composer on windows install php latest version in composer install composer windows 10 how to run composer.json in ubuntu install composer with composer.phar install php composer mac how to install composer in ubuntu get composer.phar file installl composer ubuntu server how to install composer in local host composer iinstall dir install composer and php windows composer install ubuntu 18 add composer to path composer reuqire windows install composer in mac install composer in php verify composer is installed install composer windows composer mac os php install composer php composer install mac composer install globally composer install globally mac download lib to current directory composer copmoser install install composer windpows apt-get composer update 1.10 install composer on windows 10 install by composer install composer on windows composr install reinstaller composer ubunu install composer global linux install composer global composer what is it for mac do i need composer.phar install composer locally windows install composer locally composer donwload how to check composer is installed or not in ubuntu download composer.phar do i have composer on machine composser install terminal composser install make composer globally mac composer instal where to install composer in windows install composer php where find composer in windows getcomposer.org install composer in path composer windows composer install ubuntu composer mac download composer for windows install php composer install composer ubuntu php composer.phar where is compose.phar mac add composer to path composer linux link mac os install composer globally composer install windows composer install macos composer install on mac composer global update php install composer globally on mac install composer on local and add to path mac os getcomposer download install composer php in linux to know version de composer mac version de composer mac install composer in windows download composer where is composer installed windows composer install mac terminal composer download install composer globally windows 10 install composer globally mac install composer linux check composer version composer.phar downnload composer where is composer.phar mac composer install mac where is composer.phar mac composer location install compsoer globally how to install composer install composer linux mint install composer by terminal windows install composer by terminal installation composer php mac install mavenonmy mac what to do after you installed fish shell install composer debian where should you install anaconda install mac composer trouble installing composer composer install mac os iinstall composer how to install compose hot to install composer installing composer with git bash vs installing composor in cmd mac setup composer to run as php 7 linux install composer how to install composer on mac terminal install composer on mac terminal install composer ith cmd how to install composer in mac install composer localy install with composer composer install on macos php composer.phar install install composer globally composer install install composer install composer on mac how to install composer on mac composer php install install composer without installer install composer mac mac install composer where is composer installede mac where do you install composer
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source