Install Composer on Windows with Xampp



hello guys and welcome to the next code today we will see how to download composer for Windows yes basically composer is dependency manager for PHP so let's see how to download it go to google and type composer you will get the first link as get composer dot watch it click on it then here you can see dependency manager for PHP so now click on download and go to windows installer which is on the top most now click on setup dot exe so it will start downloading yeah if you are familiar with command-line how to use how to use it so you can follow these commands to install composer you know command line otherwise windows install is quite easy ok so it's almost done alright okay yeah so now click on it let's install it now click on yes then yeah click on next so here you can see you need to browse to your PHP where where you have install your PHP so I am using Sam server and so it has PHP net obviously so I will choose the PHP path here here it is okay so okay so here select PHP dot exe and click on open so here you can see we have set a PHP path suppose if you have not installed PHP so you can install it by using you can check my other video named as installing zamp on windows so there you can install PHP okay now click on next then click on next click on install so it's installing okay it's done now you can see open a new command window close all the file explorer windows and open come on window then log off and log over again then open a new command window so now click on finish so why they're telling us to log of n log n because composer is command-line tool so whenever we install any command-line tool it requires to you know set the path in what variable environments and women variable I'll show you you can click on PC info yeah here you can see ya these environment variables so any any you know come on Lana software we installed on our computer they they get included here so that we can use them in anywhere so you can see the program data composer set up in it's been included in this path so that means we can use it from anywhere suppose I open CMD here here's a protip price suppose you want to open suppose you want to open a command line in particular folder so you can click on click and hold shift button then right click in that folder so you can see an extra option open command window here so now you can click on it yeah now see you can see the path is this folder so let's check where come composer is install or not type composer then press Enter so here you can see the version of composure and the commands associated with it which you can use so that's how we install composure on windows so thank you for watching guys if you have any kind of doubt or anything you can comment below I will try to solve your doubt thank you please subscribe to my channel for further tutorials

12 Replies to “Install Composer on Windows with Xampp”

  1. кααη вeαšт says:

    you are the best bro

  2. 9one says:

    опять индусы

  3. Arul James says:

    thank you

  4. Shahzeb Iftikhar says:

    I have a question if there is no file with ".exe" extension in php folder as u have already installed php.exe. Then what should we do? have you any other lecture on xampp installation specifically on this area?

  5. Igor Pavlov says:

    работай над произношением. "Англичанин"

  6. Umair Iftikhar says:

    Program 'composer.bat' failed to run: The system cannot find the file specifiedAt line:1 char:1
    + composer
    + ~~~~~~~~.
    At line:1 char:1
    + composer
    + ~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

  7. Asraful Haque says:

    Thank you so much, but when I command on console "composer init" it is not creating composer.json file. How can I solve this issue? Please

  8. TJ Khara says:

    Thank you. Very nice video.

  9. Veljko Veljkovic says:

    I have this problem when I try to install Composer…… :(The PHP exe file you specified did not run correctly:
    C:xamppphpphp.exeThe php.ini used by your command-line PHP is: C:xamppphpphp.iniA duplicate setting in your php.ini could be causing the problem.Program Output:
    PHP Warning:  Module 'openssl' already loaded in Unknown on line 0

  10. Hung Vux says:

    tks bro

  11. Andy Rojas says:

    Thanks. Very helpful.

  12. carlos palacio says:

    ok

Leave a Comment

Your email address will not be published. Required fields are marked *