title: Unable to install PHP CodeSniffer in wamp or xampp in windows 10 system
body: <p>I am trying to install code sniffer in my localhost but unable to install it.</p>
  <p><strong>System: Windows 10</strong></p>
  <p><strong>PHP: PHP 5.4+</strong></p>
  <p>I have tried below methods.</p>
  <ol>
  <li>Open  command prompt with administrative permissions (select “run as administrator “)</li>
  <li>Go to your php install directory. For example : \wamp\bin\php\php5.5.12</li>
  <li>Run this command &quot;<strong>pear install PHP_CodeSniffer</strong>&quot; OR &quot;<strong>pear install --alldeps PHP_CodeSniffer</strong>&quot;</li>
  </ol>
  <blockquote>
  <p><strong>Error:</strong></p>
  <p>D:\Projects\wamp\bin\php\php5.5.12&gt;pear install PHP_CodeSniffer
  No releases available for package &quot;pear.php.net/PHP_CodeSniffer&quot;
  install failed</p>
  </blockquote>
  <ol start="4">
  <li>Then run this command &quot;<strong>pear clear-cache</strong>&quot; and this also giving error like,</li>
  </ol>
  <blockquote>
  <p><strong>Error:</strong></p>
  <p>D:\Projects\wamp\bin\php\php5.5.12&gt;pear clear-cache
  C:\Users\pcs9\AppData\Local\Temp\pear\cache does not exist or is not a directory</p>
  </blockquote>
  <p>I have to use code sniffer &quot;phpcs&quot; and &quot;phpcbf&quot; but without install PHP_CodeSniffer its not worked.</p>
  <p>Please help to resolve this error.</p>
  <p>Thanks in advance!</p>