Windows under the
1. Install the set-up program under Windows first
Click on the step-by-step,
CMD entry, input Composer can successfully display a picture indicating the successful installation
2. In the download,https://getcomposer.org/installer,保存为composer.phar
Then go to cmd and run PHP Composer.phar.
Can run successfully, indicating the ability to run the installation package software.
3. In the root directory where you want to install the project, create a new Composer.json and write your project's dependencies.
4. Running PHP Composer.phar insatll
Note: Both 2 and 4 have to be run in the composer file directory (cmd)
However, there is a problem, I follow the above steps to fix, but can not find the installation of the dependency package, run only when the execution succeeds, but does not see the existence of the download dependency package.
Finally in the official manual, there is a reference to a folder called Vendor, the installation of the dependencies are placed in this folder.
Therefore, I created this folder, and I succeeded in the end.
The previous page was displayed as follows:
The revised page appears as follows:
Hope to be helpful to those who need it, thank you.
Some basic questions about PHP package management tools