Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

在 Mac 透過 Homebrew 裝 PHP7 和 Composer

這一篇是安裝筆記

  • 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

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

參考

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?