<?php //$dir = substr(realpath(__DIR__), 0, strpos(realpath(__DIR__), 'config')); //require_once $dir . __CLASS__ . '.php'; spl_autoload_register(function ($class) { require_once(str_replace('\\', '/', 'src/' . $class . '.php')); });
info at phpclasses dot org