Using Composer, PHP 7.4.1, Laravel 8.x and MAMP 4.2.0.
- Download and install MAMP or somehing similair.
- Download and install Composer.
- Choose PHP 7.4.1 from MAMP as command-line PHP, can be found at
C:\MAMP\bin\php\php7.4.16
.
- Choose PHP 7.4.1 from MAMP as command-line PHP, can be found at
- Using the command line, head to the folder
C:\MAMP\htdocs
. - Run command
composer create-project --prefer-dist laravel/laravel example
.
- If you get issue 1, edit and add
extension=php_fileinfo.dll
toC:\MAMP\bin\php7.4.1\php.ini
andC:\MAMP\conf\php7.4.1\php.ini
.