WordPress development environment on Mac with Brew, Nginx, PHP 7, PHP-FPM, MariaDB, phpMyAdmin and more
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-phpbrew install git
brew install git-flow
brew install git-ftpbrew install ruby
brew install rbenvbrew install zsh
brew install zsh-autosuggestions
brew install zsh-completionsbrew install nodenpm install -g grunt-cli
npm install -g npm-check-updates
npm install -g bowerbrew install php70
brew install php70-xdebug
brew services start php70
php -vbrew install php-code-sniffer
brew install phpmdbrew install composerbrew install nginxDownload https://github.com/remcotolsma/localhost-home-dev in the ~/Websites/ folder.
echo include ~/Websites/nginx/nginx.conf\; > /usr/local/etc/nginx/nginx.confbrew services start nginxbrew install mariadb
brew services start mariadb
mysql_secure_installationbrew install phpmyadmin
ln -s /usr/local/share/phpmyadmin ~/Websites/phpmyadmin.devbrew install wp-clihttp://www.thekelleys.org.uk/dnsmasq/doc.html
brew install dnsmasqecho 'address=/.dev/127.0.0.1' > /usr/local/etc/dnsmasq.confsudo mkdir /etc/resolver
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev'sudo brew services start dnsmasqscutil --dnsNote that if you're using Mountain Lion you may need to reboot before the /etc/resolver settings take effect globally. I was able to get pings to work right away but Chrome would not resolve properly until I restarted.
Source: https://echo.co/blog/never-touch-your-local-etchosts-file-os-x-again
Resources: