Today, We will discuss about how to install PHP composer on ubuntu. Ubuntu is a free and open-source operating system and it is a popular operating system for cloud computing. composer is a package manager libraries. it is managing the PHP application and it is used for specially laravel framework. let's see how to install PHP composer in ubuntu.
install composer on Ubuntu, install composer, LinuxMint, Ubuntu, install composer for laravel, Install PHP Composer on Ubuntu 18.04 & 16.04
Install Composer on Ubuntu
We will download composer using the below command and PHP version must be installed to 5.3.2 or higher version for the installation composer. PHP stands for Hypertext Preprocessor and it’s a run based on server-side so we have the need to apache server and MySQL database.
sudo apt-get update sudo apt-get install curl sudo curl -s https://getcomposer.org/installer | php
Now we move the composer.phar file into the bin folder and set the permission for all users.
sudo mv composer.phar /usr/local/bin/composer chmod +x /usr/local/bin/composer
After the installation composer, we will check the composer install or no using the below command.
/ ____/___ ____ ___ ____ ____ ________ _____ / / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/ / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ / \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/ /_/ Composer version 1.8.6 2019-09-03 23:17:20 Usage: command [options] [arguments] Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question --profile Display timing and memory usage information --no-plugins Whether to disable plugins.