To run Laravel 4.2 on a OS X Yosemite setup with the default PHP binary and Postgres as a database1 you have to follow a few steps. Make sure you have Homebrew installed before you start.
Laravel needs the MCrypt PHP extension and since we want to use Postgres we also have to install the PDO Postgres driver.
Replace 55
within following commands with whatever version of PHP you are running.
Now we have to tell PHP about the new extensions. These paths depend on your installation so make sure to lookup the correct paths for your machine.
The next step is installing Composer so we can install Laravel and its dependencies. When adding the composer binary to your PATH
make sure to adapt the path.
Finally we can install Laravel itself and create a new project.
-
I usually have nothing to do with the PHP world so I don't want to install any versions of PHP, MySQL or other pieces of tooling that I don't use for my usual development tasks. ↩