Install Laravel Valet on macOS Sierra

Just quick note for myself when try Laravel Valet on macOS Sierra (10.12.2)

Install  homebrew (if not installed) :

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

Install PHP 7.1

Libpng

brew link libpng

Linking /usr/local/Cellar/libpng/1.6.28… 18 symlinks created

brew install homebrew/php/php71

test :

php -v

PHP 7.1.0 (cli) (built: Dec  2 2016 11:32:42) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies

Install Composer

brew install composer

Install Valet

composer global require laravel/valet
cd
nano .bash_profile

Add this line :

export PATH=$PATH:~/.composer/vendor/bin

save.

source .bash_profile
echo $PATH

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/alamsyahrasyid/.composer/vendor/bin

valet install

Password:
[nginx] is not installed, installing it now via Brew… ?
[dnsmasq] is not installed, installing it now via Brew… ?

Valet installed successfully!

Start valet

valet start

Valet services have been started.

Install mysql

brew install mariadb
brew services start mariadb