Composer Autoloading classes not found : <p>I have folder structure like:</p>

<pre><code>includes/
  libraries/
    Classes/
      Contact/
        Contact.php
        ContactController.php

admin/
  controllers/
    contact/
      edit.php
</code></pre>

<p>Contact.php is my class that file that I'm trying to use. The file contains.</p>

<pre><code>&lt;?php
namespace Classes;

class Contact {
    function __construct() {
        die('here');
    }
}
</code></pre>

<p>I have my composer.json file like:</p>

<pre><code>{
    "autoload": {
        "psr-4": {
            "Classes\\": "includes/libraries/Classes/"
        }
    },
}
</code></pre>

<p>The file I'm trying to use the Contact class in is <code>edit.php</code> within the <code>admin/controllers/contact/</code> folder. My <code>edit.php</code> file is like:</p>

<pre><code>&lt;?php

use Classes\Contact;

$contact = new Contact();

var_dump($contact);
</code></pre>

<p>This file has the <code>vendor/autoload.php</code> file included, yet I can't seem to get it to use the class?</p>
