Install Composer on Ubuntu 16.04

Introduction

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.


1- Installing Dependency

Before you are Downloding and installing composer, you have to make sure that your server already updated. all you need is to update Package manager chache by running this command
sudo apt-get update
view raw update hosted with ❤ by GitHub
you need curl and php7.0-cli to install composer  use this commond to install both of them

sudo apt-get install curl php7.0-cli
view raw isntall php cli hosted with ❤ by GitHub

2- Download And Installas Composer

it's really easy to install composer, all you need is just run this command

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Yes, after executing the Command above, Composer is already downloaded and installed as a system command named 'composer', in the / usr / local / bin directory. Well, after the composer is installed, there is a notification like this:
 All settings correct for using ComposerDownloading 1.2.4... 
 Composer successfully installed to: /usr/local/bin/composer
 Use it: php /usr/local/bin/composer

make sure that you composer already installed properly by executing this command in you terminal
composer
view raw composer hosted with ❤ by GitHub






Tidak ada komentar:

Posting Komentar

TERIMAKASIH

Install Laravel in Ubuntu 16.04

Installing Laravel In previous post i have explain you how to install composer , today we will learn how to install Laravel using composer...