0

I installed PHPCS via composer, and checked the PATH to ensure it exists but it's not being recognized when I run the command. I've used both of the following commands to install and it's still not found after either installation:

composer global require "squizlabs/php_codesniffer=*"

.

composer global require squizlabs/php_codesniffer

Here's a screenshot of the command line showing that PHPCS has been installed, but it can't be found.

enter image description here

I've reviewed a bunch of other forums about similar issues but most of them say that it's an issue with installation via PEAR (which I didn't use) or an issue with the PATH (which also doesn't seem to be my problem). Any ideas how to get the command line to recognize the PHPCS installation?

  • What does `composer -q global require hakre/tunesmith:1.0.0 && composer global exec tune.php` show? – hakre Mar 29 '23 at 00:44

0 Answers0