tmp
Thursday, November 27, 2014
install phpcs, phpmd
###install pear
###install phpcs ```bash $ sudo pear install PHP_CodeSniffer ``` ###install phpmd ```bash $ sudo pear channel-discover pear.pdepend.org $ sudo pear channel-discover pear.phpmd.org $ sudo pear install pdepend/PHP_Depend $ sudo pear install phpmd/PHP_PMD ```
install PEAR OSX
###install ```bash $ sudo php /usr/lib/php/install-pear-nozlib.phar [PEAR] Archive_Tar - installed: 1.3.7 [PEAR] Console_Getopt - installed: 1.3.0 [PEAR] Structures_Graph- installed: 1.0.4 [PEAR] XML_Util - installed: 1.2.1 [PEAR] PEAR - installed: 1.9.4 Wrote PEAR system config file at: /private/etc/pear.conf You may want to add: /usr/lib/php/pear to your php.ini include_path ``` ###copy php.ini ```bash $ sudo cp /etc/php.ini.default /etc/php.ini ``` ###edit php.ini ``` :include_path = ".:/php/includes" ↓ include_path = ".:/php/includes:/usr/lib/php/pear" ```
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)