Help us understand the problem. What is going on with this article?

homebrew+phpbrewで複数バージョンphpをインストールとxdebug、phpunitのインストール、phpstormの設定まで

More than 5 years have passed since last update.

Homebrewをインストール
Homebrew — MacPorts driving you to drink? Try Homebrew!

PHPBrewをインストール
c9s/phpbrew

Requirementsの足りないものをhomebrewでインストール
phpbrewのインストールをhomebrew経由にするためFormulaを追加
Formula for phpbrew — Gist

ダウンロードして/usr/local/Library/Formulaに追加

brew install --HEAD phpbrew

以降のphpインストール、切替はphpbrewを参照

本当はphp-versionとphp-buildで管理したかったけど、
うまく行かなかったのでとりあえずこれで落ち着いた

xdebugのインストール

brew install php54-xdebug

指示に沿ってphp.iniにxdebugの設定を追記

PHPUnitをインストール
PHPUnit PEAR Channel
The symfony project PEAR channel

pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com
pear install symfony/YAML
pear install phpunit/PHPUnit

こっちのやり方のほうがスマート
sebastianbergmann/phpunit

phpstormの設定
設定 > PHP > Development environment > Interpreterでインストールした各バージョンを指定する

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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした