PHP Setting

# 컴포저 설치
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin/

# 심볼릭 링크 설정
$ sudo ln -s /usr/local/bin/composer.phar /usr/local/bin/composer

# PHP Version 5.6 설치
$ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

# PHP Version 7.0 설치
$ curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0

# Laravel 설치
$ composer global require "laravel/installer=~1.1"

USER IP 알아오기

if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
     $ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
     $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
     $ip = $_SERVER['REMOTE_ADDR'];
}
echo $ip;