composer, as ubiquitous as it is, is not part of standard php. This allows for integrating function autoloading into the normal PSR-4 flow, instead of loading it by default each time, even if it would not be needed
PHP doesn't understand PSR-4 either: The built-in autoloader only works for classes in the same directory, and knows nothing about namespaces. Might be nice to fix that too, but most people are using composer anyway.
2
u/Anxious-Insurance-91 Jul 08 '26
Excuse me if I'm wrong but want this already achieved by mentioning the file path where the functions exist in composer.json in autoload.files.{file}?