Here the complete explanation of Install Composer on Linux and Windows.
Introduction
Composer is the tool for managing the dependencies for PHP frameworks. It allows downloading libraries that are required for your project and also allows you to update and install libraries for your project.
3 Steps to Install Composer on Linux
Note:
For this tutorial you need:
- Ubuntu 14.04
- Access the system with
SUDO
permission
Here is 3 Steps to Install Composer on Linux,
- Update the package manager using below command.
1 |
$ sudo apt-get update |
2. To install composer and php5-cli
we need curl
1 |
$ sudo apt-get install curl php5-cli git |
3. Composer install is very simple after getting all dependency for linux. Run below command.
1 |
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |
For checking composer is successfully install or not we run below command,
1 |
$ composer |
3 Steps to Install Composer on Windows
For windows, composer installation we have to download .exe
file composer file from a given source,
https://getcomposer.org/download/
After download install this. Installation – Windows”. Next, click the “Composer-Setup.exe” link to download the installer.
After successfully installation, open command prompt and run this command,
1 |
composer |
You can see below screen,
Heree is the all about Install Composer on Linux and Windows. If you facing any issueplease let me know.
Also Check:
- Send Mail Attachments with PHP Mail()
- Selection in CSS | CSS ::selection
- How to Integrate Google Translate on website
Happy Coding..!
4 Replies to “Install Composer on Linux and Windows in 3 Steps”