Local WordPress Development With Laravel Valet

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.

MacKeeper ad

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.

UPDATE (16.6.16)

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.


  1. Hi,

    I have a question:
    My WordPress setup using valet produce “index.php” in the permalink settings. I’m using the wp-config.php 1 level above structure (wordpress in its own folder).

    Any idea how to remove that?

    Btw, current Driver does not support this setup. Somebody sent a pull request fix, but not yet merged.

    1. I’ve not had this myself but other folks have reported it. First action is to make sure you’re up-to-date:

      composer global update

      followed by:

      valet install

Comments are closed.