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

emizentech@devserver:~$ 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

Get in Touch

Avatar photo
Author

Amit Samsukha, CTO at EmizenTech and a proud member of the Forbes Technology Council, is recognized as an innovator and community leader in India’s tech ecosystem. With over 12 years of experience in the technology sector, he plays a key role in driving product strategy, global sales and marketing, and business growth. Amit has led numerous successful projects across the eCommerce and AI development landscapes for clients in India and the U.S. His strategic vision and technical expertise continue to shape the future of digital transformation for businesses worldwide. Connect with Team Amit here.

whatsapp