Từ khoá: php7, homebrew, macos
(https://pbs.twimg.com/media/CXjZjKYWwAEyP17.png)
Bước 1: Cài đặt những thư viện cần thiết của homebrew-php
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install php70
Bước 2: Trong trường hợp update thì cần xoá phiên bản cũ và cập nhật phiên bản mới của PHP
brew unlink php56
brew install php70
# hoặc có thể cập nhật phiên bản mới nhất của PHP 7 thay vì 7.0
brew unlink php70
brew install php71
Bước 3: Cài đặt thêm PHPCS và PHPMD để dễ dàng kiểm tra và test code style
brew install php-code-sniffer
brew install phpcs
brew install phpmd