title: Why should we use composer rather than using include_once or require_once?
body: <p>I have searched many blogs and websites but I didn't find any perfect answer.
  whenever I use composer I have to include the autoload.php file and then for each class to autoload I have to use that class with the namespace.now I want to know what is the advantage of this composer where I can easily include the class file by include_once or require_once rather than using both autoload.php and the class file individually.
  when I use composer I have to write these code:</p>
  
  <pre><code>include_once("vendor/autoload.php");
  use namespace/derectoryname/classname;
  </code></pre>
  
  <p>whenever I include manually than</p>
  
  <pre><code>include_once("classname.php");
  </code></pre>
  
  <p>can anyone clear these?</p>