LoginSignup
0
0

More than 5 years have passed since last update.

在 Mac 透過 Homebrew 裝 PHP7 和 Composer

Posted at

這一篇是安裝筆記

  • macOS 10.12.5, iTerm 3.0.15
  • 安裝後: PHP 7.1.8, Composer 1.4.2

Homebrew

安裝方法可以看 官網 的說明

PHP

安裝指令:

brew install homebrew/php/php71

安裝成功之後,到 ~/.bash_profile 裡面加上一行

export PATH="$(brew --prefix homebrew/php/php71)/bin:$PATH"

接著可以透過指令

php -v

確認安裝版本

Composer

安裝指令:

brew install homebrew/php/composer

安裝完成之後,可以打

composer

送出,確認是否可以正常執行

參考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0