How to create a PSR-4 autoloader for my project?

If you are using composer, you do not create the autoloader but let composer do its job and create it for you. The only thing you need to do is create the appropriate configuration on composer.json and execute composer dump-autoload. E.g.: { “autoload”: { “psr-4”: {“App\\”: “src/”} } } By doing the above, if you … Read more