Homebrew: http://brew.sh/index_zh-tw.html
Homebrew目錄: /usr/local/Library/Taps/homebrew
Homebrew安裝:
必須先安裝XCode,才能編譯
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
安裝後可做的事情:
可檢查是否有error:
brew doctor
brew search 套件名稱 #搜尋套件 brew info 套件名稱 #查詢套件資訊 brew list #已經裝了哪些套件 brew update #更新Homebrew brew upgrade brew install 套件名稱 #安裝套件
安裝php, phpunit:
brew tap homebrew/dupes brew tap homebrew/homebrew-php brew install phpunit
參考網址:https://github.com/Homebrew/homebrew-php