How can I autoload helper functions (outside of any class)? Can I specify in composer.json some kind of bootstrap file that should be loaded first?
composer.json
You can autoload specific files by editing your composer.json file like this:
"autoload": { "files": ["src/helpers.php"] }
(thanks Kint)
1.4m articles
1.4m replys
5 comments
57.0k users