How to Install Composer, PHP, and MySQL on Windows 10

Last modified: June 11, 2021

The easiest way to install PHP, MySQL, PHPMyAdmin is to install XAMPP. Go to https://www.apachefriends.org/index.html and download XAMPP for Windows. Once the file is downloaded, double click on it to install.  xampp setup

Select program server, programming languages, and program languages. In our case, we are going to select 'Apache', 'MySQL' for program server, 'PHP' for programming languages, and 'phpMyAdmin' for program lanagues. We need Apache to run phpMyAdmin, MySQL for database and phpMyAdmin for managing our databases.

xampp setup

Select a path to install XAMPP. xampp setup

Start Apache and MySQL services. To manage the database, you can click on Admin button of MySQL xampp Configure

Download Composer from https://getcomposer.org/. Composer is Dependency Manager for PHP. Composer

If the PHP was install successfully, composer installer will automatically pick up the PHP install path. Composer

To test if composer works or not. Simply open 'command prompt' and type Composer and press enter. If you see similar result as below, it mean it works. Composer