###公式のリポジトリにないので、 remiのリポジトリを追加する。
sudo rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
###必要なパッケージをインストールする
yum install --enablerepo=remi,remi-php56 php php-devel php-mbstring php-pdo php-gd php-mysql