create a new project in laravel

PHP
composer create-project laravel/laravel example-app

cd example-app

php artisan servephp artisan serve
  /* 
To START composer in project folder on MacOS: 
  The original answer is:

  The full command works like this:

php artisan serve --host=<host IP address> --port=<port to use>

php artisan serve --host=127.0.0.1 --port=8080
AFTER: php artisan serve TERMINAL SHOWS:
Laravel development server started: <http://127.0.0.1:8000>

IN WEB BROWSER ENTER THE:
http://127.0.0.1:8000 , OR:
http://localhost:8000/
AND YOU ARE IN ! ! !
  */
http://127.0.0.1:8000/
http://localhost:8000/laravel new blogphp artisan serve
  // The original answer is:
  /* 
  The full command works like this:

php artisan serve --host=<host IP address> --port=<port to use>

php artisan serve --host=127.0.0.1 --port=8080
  */
Source

Also in PHP: