title: what is phpmd and how to use it?
body: <p>I have Ubuntu 14.04 + Sublime text 3 and installed phpcs packages</p>
  
  <p>additionalty I have installed <code>phpcs</code>  and <code>php-cs-fixer</code>  on my system</p>
  
  <p>From <a href="http://theaveragedev.com/making-php-code-sniffer-plugin-work-in-sublime-text-3/">this blog</a></p>
  
  <p>I have found that <strong>phpmd</strong> (<em>PHP Mess Detector</em>) is also a required library, so installed <strong>phpmd</strong> as per given instructions on <a href="http://phpmd.org/download/index.html">official php md</a>  page using alternative method <strong><em>From the github repository</em></strong>  everything was finished. </p>
  
  <pre><code>:~/phpmd$ curl -s http://getcomposer.org/installer | php
  #!/usr/bin/env php
  All settings correct for using Composer
  Downloading...
  
  Composer successfully installed to: /home/keshav/phpmd/composer.phar
  Use it: php composer.phar
  </code></pre>
  
  <p>but now when I write on terminal </p>
  
  <pre><code>  phpmd /opt/lampp/htdocs/myproject, myfile.php 
  </code></pre>
  
  <blockquote>
    <p><strong>phpmd: command not found</strong></p>
  </blockquote>
  
  <p>There is <strong>phpmd</strong> folder on Home directory and everything without any error.</p>
  
  <p>I have local project on core PHP create <code>composer.json</code> in project folder as per suggested on <a href="https://github.com/phpmd/phpmd">github</a> .</p>
  
  <p>Please tell me what means by </p>
  
  <blockquote>
    <p>Then install Composer <strong>in your project</strong> (or download the composer.phar directly):</p>
  </blockquote>