Some basic questions about PHP package management tools

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.