Setup a Mac for running Laravel

Install PHP

First see if I have it installed already:

brew search php

And check the version:

php -v

If I don't have it, then install it:

brew install php


Install MySQL

Search for it:

brew search mysql

If I don't have it, install it:

brew install mysql

Set it to always start mysql on login:

brew services start mysql


Get composer

Check to see if I have it by running

composer

If not, then follow instructions for downloading and installing composer here: https://getcomposer.org/


Laravel Installer

Get the composer package for easily creating a new laraval project.

composer global require laravel/installer

Last updated