Best practice: Set your namespaces to the path of the file so the class file can be required in the autoloader

spl_autoload_register(function($class) {
    require_once( **DIR** . '/' . str_replace('\\', '/', $class) . '.php' );
});