やりたいこと
CentOSにphpmdとphpcsをインストールしたい。
やり方
yumとpearを使います。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# cat /etc/redhat-release CentOS release 6.5 (Final) # yum install php-pear # pear channel-discover pear.pdepend.org # pear install pdepend/PHP_Depend # pear channel-discover pear.phpmd.org # pear install --alldeps phpmd/PHP_PMD # pear install PHP_CodeSniffer $ which phpmd /usr/bin/phpmd $ which phpcs /usr/bin/phpcs |