PHP SPL autoload: 3 simple rules you must follow
While working on a larger site that I may need to use many external libraries, I realized I need to come up with a better __autoload()
function (for example, I think it was DOMPDF that had its own autoload function as well. Last time I used that, I had to hack my own autoload to use their code as well to locate files). I researched into SPL autoload functionality, and I’ve found what I need.