The Problem
phpcbf complains about missing CodeSniffer but it appears to be missing from its own phar.
My setup
Ubuntu 14.04 using ondrej ppa for PHP 5.6
Here's what I've tried for installation and the output to verify installation
sudo pear install PHP_CodeSniffer
pear list
=> PHP_CodeSniffer 2.6.0 stablecurl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar
php phpcbf.phar --version
=> PHP_CodeSniffer version 2.6.0 (stable) by Squiz (http://www.squiz.net)
How I'm running phpcbf
php phpcbf.phar --standard=PSR2 ./MyDir/MyClass.php
PHP Warning: chdir(): No such file or directory (errno 2) in phar:///home/myuser/projects/myproject/src/phpcbf.phar/CodeSniffer.php on line 861
Update: Despite the warning, it seems to work fine.