Skip to content

Instantly share code, notes, and snippets.

@boogah
Created September 13, 2017 22:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boogah/878443bdac318f15759625e9387f1f99 to your computer and use it in GitHub Desktop.
Save boogah/878443bdac318f15759625e9387f1f99 to your computer and use it in GitHub Desktop.
# These instructions cover how to install Laravel Valet (including its requirements) on macOS and prep it for WordPress development.
# Install Xcode Command Line Tools
→ xcode-select --install
# Install Homebrew
→ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Update Homebrew Package Index
→ brew update
# Confirm Homebrew is Installed Correctly
→ brew doctor
# Install PHP 7.0
→ brew tap homebrew/php
→ brew install php70
# Install Xdebug (optional)
→ brew install php70-xdebug
# Confirm PHP is Installed Correctly
→ php -v
# Install MySQL
→ brew install mariadb
# Launch MySQL at Login
→ brew services start mariadb
# Install Composer
→ brew install composer
# Confirm Composer is Installed Correctly
→ composer -V
# Install Valet (Part 1)
→ composer global require laravel/valet
# Install Valet (Part 2)
→ valet install
# Create a Directory for Valet Sites
→ mkdir ~/sites/valet/
→ cd ~/sites/valet/
→ valet park
# Install WP-CLI
→ cd ~
→ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
→ php wp-cli.phar --info
→ chmod +x wp-cli.phar
→ sudo mv wp-cli.phar /usr/local/bin/wp
# Install Valet tools for WP-CLI
→ wp package install aaemnnosttv/wp-cli-valet-command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment