I recently discovered Laravel Valet. It’s a quick and minimalist way of setting up a local development environment on a Mac. In this short post, I show how to combine Valet with a bit of scripting to create WordPress development environments quickly and with minimal effort.
Take a look at the promo video below for an idea of the Laravel attitude to local development.
Like many WordPress people, I’ve always used MAMP, DesktopServer and more recently, Vagrant for local development. Which is fine, but I’ve always longed for a super-quick way of getting up and running with a basic site in just a couple of minutes – especially if all I want to do is checkout a new theme or plugin.
Laravel Valet plus a bit of WP-CLI in a bash script presented such an opportunity. Here’s a demo video of these three elements combined to deliver a quick setup.
Here are some of the resources mentioned in the video:
I’m really impressed and encourage anyone to check it out.
Tom McFarlin has posted an in-depth walk-through of setting-up WordPress with Laravel Valet. Check it out!
And for more scripting goodness, check out Aaron Rutley’s ValetPress.