3 ms·
Although the trend of always-in-classes and class-per-file didn't necessarily start w/ Zend (was prevalent in many PEAR libs), the fact that they do it makes it
by kodablah 14y ago
Although the trend of always-in-classes and class-per-file didn't necessarily start w/ Zend (was prevalent in many PEAR libs), the fact that they do it makes it fairly standard now.
Having [unfortunately] worked in really large PHP codebases both with an without this level of organization, I can say it is just too painful to maintain unless you can quickly find the source location of a class by knowing its name. Same for functions...globally scoped functions can be difficult to find.
It's probably just as much of a lack of tooling/IDE support as anything, but I welcome the "functophobia".