How to connect a file with settings through composer. And then in the right place to use include "array_config.php";

array_config.php will contain

 return ['abc'=>$this->lalalala,'asd'=>$abcs]; 

composer.json

 { ... "autoload": { "psr-0": {"ParserBase": "src/"}, "files": ["src/functions_include.php"] } } 
  • Composer should not engage in this function. It looks like you have a bad idea of ​​the purpose of the composer. - Zhukov Roman
  • @ZhukovRoman, however, you can declare files loaded in the composer before the application is launched. - u_mulder

1 answer 1

In this case, the pure compositor is not your assistant, maybe you should pay attention to the plugins for it https://getcomposer.org/doc/articles/plugins.md