On 08/09/2016 15:13, Lester Caine wrote:
bash: ./vendor/bin/phpcs: No such file or directory Which I presume means I do need to set up some path, but currently I no idea where 'composer global require "squizlabs/php_codesniffer=*"' has put it?
That's the directory where it goes if you *don't* use "--global": the vendor directory of the current project.
The "--global" documentation refers to COMPOSER_HOME as the location it uses, which is documented here: https://getcomposer.org/doc/03-cli.md#composer-home It boils down to (I think) "~/.composer/vendor/bin/phpcs"
Currently having followed the installation guide I have things working on a home directory. This is probably what people expect today, but I still expect tools to be available which ever login I use ... testing different client profiles.
You could also just create a composer.json file in /usr/share somewhere and run "composer install" there. You could then make a symlink from /usr/bin/phpcs to wherever the executable is, and it would be in every user's default path as well.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php