How to Install Composer in windows

Today will learn how to install composer in windows 10 operating system.

Firstly will get what is composer and how to use it Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

Dependency management

Composer is not a package manager in the same sense as Yum or Apt are. Yes, it deals with "packages" or libraries, but it manages them on a per-project basis, installing them in a directory (e.g. vendor) inside your project. By default, it does not install anything globally. Thus, it is a dependency manager. It does however support a "global" project for convenience via the global command.

This idea is not new and Composer is strongly inspired by node's npm and ruby's bundler.

It's more about composer and how it works

Now next steps

  • Requirements Composer requires PHP 5.3.2+ to run. A few sensitive php settings and compile flags are also required, but when using the installer you will be warned about any incompatibilities

  • OS Requirements As it's supports cross platform it work on all below os Windows Linux Mac OS

Here will learn how to install composer in windows os for this you need to have installer of composer and you will get it by visiting the link given below https://bit.ly/windowscomposer You will find the page like this where you have all the download options

image.png

After downloading the composer setup click to install

image.png

Next it will prevent the message that install to all users / Install me only

image.png

Click Install to all users

Then you get this

image.png

Select Developer mode

You will get to select the path to install

image.png

In Setting Check mention where to setup the command line here I am using Xampp for that

image.png

In Proxy Setting you have to add proxy link as i don't have any proxy link i am ignoring it

image.png

Next you need to open Command Prompt to install Composer

image.png

image.png

After installation In command prompt

To change directory CD C:/ CD Xampp

To check installation is done or not

Composer

To Check the version

Composer -V

If it's show the version of the Composer then it's done

image.png

Hope you learnt how to install the composer in windows 10