Get a Quote

Hey, do you want to share your amazing ideas with us, drop your requirements, we are keen to work with you on your fantastic project. We will try to reach you shortly, SEE YOU !

Tell us about you

Tell us about your Project

What Is Composer & How To Install It

The Composer is a dependency manager for PHP. It will manage the dependencies that you require in your project. This means that Composer will pull in all the required libraries, dependencies and manage them all in one place. It will help you install and update the libraries. It installs the libraries in the specific project you want to work on.

Installing Composer

It’s really easy to install composer, It doesn’t matter system root user to install composer. but Yes you need command-line access ( SSH access ) to your system or server to install composer.

To set up the composer, login into your server & run following commands :

curl -s https://getcomposer.org/installer | php

This will create a file “composer.phar” file

Now move this to system’s bin folder so that every user can access it

sudo mv composer.phar /usr/local/bin/composer

Note: if you do not have permission than move to local user’s bin directory by

mkdir -p ~/bin ; mv composer.phar ~/bin/composer

now you are ready to use composer

[email protected]:~$ composer
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/

 

Composer version 1.6.3 2018-01-31 16:28:17

Usage:
command [options] [arguments]

Also Read: How To Install New Theme In Magento 2 and How To Optimize Magento 2 Speed

author profile
About Author
Author Name:
Amit Samsukha

Certified Magento 2 Consultant

Author Bio:

I am a certified Magento developer and Magento 2 consultant with a decade of experience in the ecommerce development segment. My expertise can make your business objectives overcome any obstacle you are dealing with the Magento ecommerce platform!

About Emizentech:

An acclaimed IT solution provider and a leading Magento 2 development company with its expertise lies in delivering top of the line ecommerce solutions, Salesforce commerce cloud services, mobile app development and many more verticals.

Relate Contact to Multiple Contacts
27 May, 2020

How To Relate a Contact To Multiple Accounts In Salesforce

With the Salesforce Summer ’16 release, you can relate a single contact to multiple accounts, without duplication! This is a […]
Read more
Salesforce Development
Chatbots in eCommerce Industry
27 May, 2020

How AI Chatbots Are Benefiting The eCommerce Industry?

Whether you call it a revolution or an intrusion, chatbots have gained a significant place in the ecommerce practices. From […]
Read more
Ecommerce Development
Odoo ERP Integration In eCommerce Platform
26 May, 2020

Odoo ERP Integration In eCommerce Platform: Complete Guide

Who knew that shopping online within just a few clicks would be easier than preparing a cup of tea. Ecommerce […]
Read more
Ecommerce Development

Let’s Talk Business

Reach out to us by following below given details, or simply drop us a text to start a conversation, we are here to provide best in class business solutions.

SAY SOMETHING