title: Where should I write my code so that Composer can autoload my PHP classes?
body: <p>I'm new to Composer, namespaces, and autoload and I wasn't able to figure out where to write my code (under <code>vendor</code>?).</p>
  
  <p>I have created a directory named <code>ilhan</code> under the <code>vendor</code>, and a file named <code>People.php</code>. Then in the main <code>index.php</code> file using <code>use ilhan\People.php as People;</code> doesn't work because I think it must have been written in <code>autoload_namespaces.php</code> initially.</p>
  
  <p>But if I register <code>ilhan</code> as a vendor then I think Composer will look into the packagist.org which it isn't there.</p>