Home » Php » autoload – How best to arrange my own PHP components for autoloading?

autoload – How best to arrange my own PHP components for autoloading?

Posted by: admin February 25, 2020 Leave a comment

Questions:

I am struggling to decide on how to arrange my PHP files…

I am trying to embrace autoloading, and trying to stick to PSR4 as best I understand it.

  • Should I be using my own autoloader and putting my components in a ‘local’ folder?
  • Should I be putting my own components inside the ‘vendor’ folder (perhaps inside a ‘local’ vendor?)
How to&Answers: