While from novice to professional, developers are concern about composer, then it is playing vital role in PHP world. What exactly composer and why programmers are bothering about this? Well, in this case, Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries in your project needs and it will install them in your project for you. Before that, php had PEAR, while it has some limitations, composer has been trying to solve all the limitations of PEAR and fixed that issues. Now, question is, how to Install composer in windows? Well, it is a major question sometimes for new comer while it is bit confusing.
Let’s take a look how to install composer in windows operating system. I am sorry to rest of OS users while this tutorial is particularly for windows OS.
Firstly, visit official page. Sure enough that you will get a page like follows that will offer you different options. Though we are doing work only for windows, just hit download button as like as follow.
Based on your internet speed, it will take few minutes. Well, after successfully completed your download, double click on your downloaded file and you may get as like me.
Now hit next button to proceed your installation. In next stage, you will get another option where you have to choose component for composer. Personally I prefer to keep remain it as it is. Although, if you wish you can install shell menu that is optional.
Now hit NEXT button again to proceed. Now it will check php settings in your computer. Based on your localhost (XAMPP/WAMP), you have to choose php.exe file. Mine, I am using xampp in C drive in my PC. So that, my path is c:\\xampp\php\php.exe but it could be different in your computer. For example, if you installed xampp in D drive in your pc, sure enough that your path will be d:\\xampp\php\php.exe. Although if you have confusion about this issue, please read an external link from here. After choosing php.exe hit next button.
Hit next button once again to proceed. Now, time to install in your computer. Hit install button as like as followed.
Now you are given few important notice about your installation. Just keep going on by hitting next button.
In next step, if you did everything properly, sure enough that you will get a success notification like me.
Well, in this stage, literally you have successfully finished your installation. Now time has come to check whether it is installed properly or not. Let’s take a look inside…
Open run window from your computer.
Now type cmd in run window and hit enter button form keyboard.
After hitting enter button, you may get same as like as follow-
It would be the last step to check composer in your pc. Just type, composer and hit enter button. Sure enough that you will get too many options in your cmd (black) screen. If your installation is ok, now you may be able to see as following-
If you can reach in that point, CONGRATULATIONS, you have successfully installed composer in your computer. Now you can do composer’s operation in your computer.
Although if you have any comments and query, please write down in comments options. All the best and see you in next lesson. Thanks.