Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evalphobia/9735614 to your computer and use it in GitHub Desktop.
Save evalphobia/9735614 to your computer and use it in GitHub Desktop.

Homebrewのインストール

 $ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

PHP5.4のインストール

$ brew tap 
$ brew install
$ echo 'export PATH="$(brew --prefix josegonzalez/php/php54)/bin:/usr/local/bin:$PATH"' >> ~/.bash_profile
$ . ~/.bash_profile
$ php -v                # homebrewでインストールしたPHP
$ /usr/bin/php -v       # Mac OSXのPHP

phpunitのインストール

$ sudo pear channel-discover pear.phpunit.de
$ sudo pear channel-discover pear.symfony.com
$ sudo pear install phpunit/PHPUnit-3.7.30

php.iniの設定

$ sudo vim /usr/local/etc/php/5.4/php.ini

  696: ;include_path = ".:/php/includes"
+ 697: include_path = ".:/usr/local/Cellar/php54/5.4.26/lib/php"

  910: ;date.timezone =
+ 911: date.timezone = Asia/Tokyo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment