Skip links

Laravel Installation – First Steps with Laravel

Step 1: Install PHP / MySql on your Operating System

I suggest using XAAMP on both macOS and Windows.
visit: apachefriends.org to download and install Xaamp

Step 2: Install Composer

visit: https://getcomposer.org/doc/00-intro.md

Run following command in Terminal or CMD

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { 
echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

php composer-setup.php

php -r "unlink('composer-setup.php');"

Once Composer is installed move composer to PATH directory

on MacOS type following command on Terminal

mv composer.phar /usr/local/bin/composer

For Windows follow instructions on this page
https://getcomposer.org/doc/00-intro.md#globally

Install Laravel 8

composer create-project --prefer-dist laravel/laravel projectName "8.0"

Leave a comment