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
you need curl and php7.0-cli to install composer use this commond to install both of them
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install curl php7.0-cli |
2- Download And Installas Composer
it's really easy to install composer, all you need is just run this command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer |
Tidak ada komentar:
Posting Komentar
TERIMAKASIH