I have been learning to use composer for some time. And for the first time, I have moved my code to production server. Many of the issues experienced by other first time users, namely autoloading, happened. In my case, it turned out to be that the file names were the culprits. Compose expected certain file names to follow the class name.
I noticed that abstract classes were among those. Others were those classes with compound names like ClassName as against Name. However what confuses me is that in some cases, things worked without changing anything while in others, composer forced me to change the file names.
To be specific, I am using my own MVC and the base class Controller had to be changed along with others in the models folder.
I have done $loader = require "vendor/autoload.php";
`$loader->add("", ["my folders"])`
Everything I have tested so far now seems to be OK. But I fear something might go wrong later, since I can't predict all that a user on the site might do. I need help, anyone. Thanks.