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)
2.1m questions
2.1m answers
60 comments
57.0k users