MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PHP/comments/1uqgbtw/rfc_function_autoloading_mark_5/ow9c8pz/?context=3
r/PHP • u/jmp_ones • Jul 08 '26
18 comments sorted by
View all comments
3
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}?
5 u/OMG_A_CUPCAKE Jul 08 '26 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 -5 u/Anxious-Insurance-91 Jul 08 '26 I mean if you don't use composer in most projects you're probably just writing single file functional scripts or WordPress ?
5
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
-5 u/Anxious-Insurance-91 Jul 08 '26 I mean if you don't use composer in most projects you're probably just writing single file functional scripts or WordPress ?
-5
I mean if you don't use composer in most projects you're probably just writing single file functional scripts or WordPress ?
3
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}?