3 ms·
Laravel has a similar convention, wrapping everything in static classes. I hated it at first - and still hate the convention outside Laravel - but in context it
by dotancohen 5y ago
Laravel has a similar convention, wrapping everything in static classes. I hated it at first - and still hate the convention outside Laravel - but in context it works well. Not for minification, but rather for reducing cognitive load while maintaining code while preserving good separation of concerns.
- hubeh 5y agoThis is done mainly due to the PHP autoloading limitations - classes are able to be autoloaded but functions aren't.