title: Setting up PHP Codesniffer (installed with homebrew) in Sublime Text 2
body: <p>Is it possible to run PHP Codesniffer from a .phar file? What does the following documentation, taken from a Sublime Text 2 plugin at <a href="https://github.com/benmatselby/sublime-phpcs" rel="nofollow">https://github.com/benmatselby/sublime-phpcs</a>, mean?</p>
  
  <blockquote>
    <p>If you have installed php-cs-fixer, phpmd or phpcs via homebrew then please make sure that you define the "*_executable_path" option to the .phar application and not the wrapper script that is placed in your bin folder, as this will cause odd behaviour.</p>
  </blockquote>
  
  <p><code>sudo find / -name '*.phar'</code> doesn't bring up any PHP Codesniffer files on Mac OS X Mountain Lion. I have set <code>phpcs_executable_path = /usr/local/Cellar/php-code-sniffer/1.4.4/libexec/phpcs</code> in the plugin but Codesniffer does not run.</p>
  
  <pre><code>unknown-58-b0-35-73-71-82:bin scisteffan$ ls -la /usr/local/bin | grep phpcs
  lrwxr-xr-x    1 scisteffan  admin       42 16 Mar 13:38 phpcs -&gt; ../Cellar/php-code-sniffer/1.4.4/bin/phpcs
  
  unknown-58-b0-35-73-71-82:bin scisteffan$ ls -la /usr/local/Cellar/php-code-sniffer/1.4.4/bin | grep phpcs
  lrwxr-xr-x   1 scisteffan  admin   54  8 Mar 11:52 phpcs -&gt; /usr/local/Cellar/php-code-sniffer/1.4.4/libexec/phpcs
  </code></pre>
  
  <p>Furthermore, phpcs works if I install it using <code>pear install</code> and link it into Sublime Text 2. Just can't figure out how to link it with <code>php-code-sniffer</code></p>