Load Classes By Namespace | Tom McFarlin TL;DR: To dynamically load classes by namespaces in PHP, you need a Registry, and a way to parse the concrete files from a directory based on its namespace. Filed Under: PHP