Tag Archives: Class loading

Hierarchical Class Loading With Namespaces

A challenge often encountered when developing in PHP is the ability to instantiate a class from the highest point in a folder hierarchy where that class exists, but fall down the hierarchy when it is missing. This can be done using a factory class and reflection, but is not the most obvious thing in the world!