How does composer work?

How do I use composer in

windows? How to use with git, do not understand

I can enter the composer command in dos, but why do I enter composer in git and prompt bash: composer: command not found

Php
Feb.27,2021

whether the installation under windows is global or not. If not, you can't find the composer


.

1. Install on windows
1) first log in to the Chinese website to download the installation package
http://docs.phpcomposer.com/0.*nix

.

2) make sure your php has extension=php_openssl.dll enabled

3) install php's environment variable path:php on your windows

4) 4. Download composer.phar, download address: Composer.phar. Put the composer.phar file in the php directory and create a new file in the php directory. The composer.cmd, content is written as: @ php "% ~ dp0composer.phar"% * save. Run this file, then open cmd run: composer will appear

2. Modify the source address we downloaded

3. Download a composer package and write this file in composer.json


Installation


refer to my blog https://blog.csdn.net/siukong.

Menu