22 C
Texas

How to install Composer on Windows 10

Composer is an application-level package manager for the PHP programming language. Its main function is to manage or administer all those libraries that a project needs. This way you don’t have to download it one by one from the provider’s website. Additionally, it provides a standard format for managing PHP software dependencies and required libraries. In other words, it allows you to download packages from a repository to add them to your project, as well as dependencies that have such packages. Consequently, being a very useful tool, let’s see how to install Composer in Windows 10.

Prerequisite

It is essential to have a web server installed. In this case, we will work with Apache. You must also have PHP installed. In the links I just provided you explain in detail how to install each one.

Downloading Composer

To download Composer just go to its official website, and download the latest version. To download Composer just go to its official website, and download the latest version of Composer Setup.

Download the latest version of Composer Setup.
Download the latest version of Composer Setup.

This file installs the application and then adds the corresponding environment variable. Once downloaded, just run it. Forthwith, the wizard will present two types of normal installation or developer mode. The installation is the most common and includes an uninstaller. The developer version provides absolute control over the wizard and does not include an uninstaller. For purposes of this post, use the normal version:

Use the normal version of Setup
Use the normal version of Setup
- Advertisement -

The wizard then indicates the path of the php installed in the system.

Choose the php command line
Choose the php command line

The wizard then verifies the operation of the php command line.

Checking PHP
Checking PHP

The composer installation wizard is very intuitive. As a matter of fact, for php to work properly, a php.ini file is required. So, if this file is not present, the installation will show an error. But don’t worry, the wizard will detect the failure and offer to create the file php.ini.

Creating the php.ini file
Creating the php.ini file

Then edit the network configuration. Specifically, the information about a proxy server. If you don’t use it, then don’t tick the box and continue the installation.

Specify the type of connection
Specify the type of connection

Once the previous settings have been made, the wizard will start the installation of Composer in the system.

Preconfigurations complete
Preconfigurations complete

After installing Composer, the wizard warns that it is necessary to open a new window to run the program.

Information before the first use of Composer.
Information before the first use of Composer.

Finally, the assistant has finished his work and Composer was successfully installed in the system.

Composer installation completed
Composer installation completed

Testing Composer

As mentioned above, the Composer installer adds the variable environment automatically. So to test the installation of the program, please open a Command Prompt and execute the following command:

composer --version
Checking Composer version
Checking Composer version

As can be seen, we have seen how to install Composer on Windows 10. This tool facilitates the development process using the php language. I hope you enjoyed this tutorial. Please share on your social networks.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article