1. Go to this page and download the library: Download aslamhus/wordpress-hmr library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bash
# cd into your project root
cd /path/to/your/project-root
# move the installer
mv vendor/aslamhus/wordpress-hmr/installer.php ./installer.php
# run the installer
php installer.php