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
>
I have an example here that I use for autoloading and initiliazing.
Basically a better version of spl_autoload_register since it only tries to require the class file whenever you initializes the class.
Here it automatically gets every file inside your class folder, requires the files and initializes it. All you have to do, is name the class the same as the file.
index.php
'test']);
autoload.php
{$class} doesn't exist."));
}*/
}
You can easily manage with a bit of coding, to require classes in different folders too.
Hopefully this can be of some use to you.