Installing PHP PEAR PHP Analyzer (mac)

Attempting to install the PHP PEAR PHP editor extension on Mac (after installing Mac ports) has failed. The ultimate goal is that Drupal code sniffing in Komodo is somewhat through these instructions ... http://blog.8bitplateau.net/drupa-code-sniffer-komodo/

Team:

pear install PHP_CodeSniffer 

Error:

There are no releases available for the package "pear.php.net/PHP_CodeSniffer"

+4
source share
3 answers

I just need to update php.ini to include_path = ".:/opt/local/lib/php"

+2
source

After loading:

 pear channel-discover pear.phpunit.de 

I get the package unavailable when tyring installs the package. My answer, running on Windows, from the command line:

 pear clear-cache 

then enter:

 pear install phpunit/PHPUnit 

if you clear the cache after each installation, any further installation goes smoothly. Enjoy

+5
source

I used the following command and worked:

 sudo pear install PHP_CodeSniffer 
0
source

Source: https://habr.com/ru/post/1398673/


All Articles