Create a copy of .environment.php.sample and rename it .environment.php
Using the value inside the .environment.php file, create a copy of .env.php.sample and rename it to .env.(value from environment).php. Edit the values from file accordingly
Make sure you dont delete the original files (.environment.php.sample and .env.php.sample)
Install using composer install