Home>Article>Daily Programming> How to install composer under Windows system? (Picture + video tutorial)

How to install composer under Windows system? (Picture + video tutorial)

藏色散人
藏色散人 Original
2018-09-20 16:32:15 11730browse

This article mainly introduces you to the detailed steps of installing composerunderWindows system.

For PHP developers, the composer tool can be said to be a household name in the industry.

What is composer?

composer is a tool used by PHP to manage dependency relationships. You can declare the external libraries (libraries) you depend on in your project, and Composer will install these dependent library files for you.

Below we will summarize and introduce the detailed steps for installing composer under Windows through specific graphics and text.

The first method: Download the program and install it through the composer official website

Step 1: Open the official website to download the composer program

composer The program download address is as follows:

https://docs.phpcomposer.com/00-intro.html#Installation-Windows

Click on the resource in the image below , you can download it.

How to install composer under Windows system? (Picture + video tutorial)

Step 2: Double-click to open the Composer-Setup.exe program installation interface

Click next directly to proceed to the next step operate.

How to install composer under Windows system? (Picture + video tutorial)

Step 3: Select the PHP version

How to install composer under Windows system? (Picture + video tutorial)

In your own PHP environment Next, find the corresponding PHP version. Here we use phpstudy.

How to install composer under Windows system? (Picture + video tutorial)

How to install composer under Windows system? (Picture + video tutorial)

Open phpstudy and check the PHP version.

How to install composer under Windows system? (Picture + video tutorial)

#Click to select php.exe under the corresponding PHP version.

How to install composer under Windows system? (Picture + video tutorial)

# After selecting the PHP version, click next directly to continue the next step.

How to install composer under Windows system? (Picture + video tutorial)

You can click Next without filling in the blanks.

How to install composer under Windows system? (Picture + video tutorial)

Step 4: Click install to install

How to install composer under Windows system? (Picture + video tutorial)

How to install composer under Windows system? (Picture + video tutorial)

How to install composer under Windows system? (Picture + video tutorial)

Step 5: Verify whether the composer installation is successful

Open the cmd command, enter composer and press Enter.

How to install composer under Windows system? (Picture + video tutorial)

#When the following interface appears, it means that we have installed the composer tool.

How to install composer under Windows system? (Picture + video tutorial)

Second method: through the own composer program in phpstudy

First open phpstudy and find the other options menu .

How to install composer under Windows system? (Picture + video tutorial)

#After clicking the other options menu, the following interface appears. We can see PHP composer in other advanced applications.

How to install composer under Windows system? (Picture + video tutorial)

After clicking PHP composer, the following interface will open directly. Enter the composer command

How to install composer under Windows system? (Picture + video tutorial)

and then the following interface will appear. Composer installed successfully!

How to install composer under Windows system? (Picture + video tutorial)

Then the above is an introduction to the steps to install composeron Windows system. Hope it helps those in need!

The above is the detailed content of How to install composer under Windows system? (Picture + video tutorial). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn