I\'m working on a project whereby I have the following file structure:
index.php |---lib |--|lib|type|class_name.php |--|lib|size|example_class.php >
index.php |---lib |--|lib|type|class_name.php |--|lib|size|example_class.php
http://php.net/manual/de/function.spl-autoload-register.php
spl_autoload_register(function ($class) { @require_once('lib/type/' . $class . '.php'); @require_once('lib/size/' . $class . '.php'); });