Where to store config files

Hi, my friend in some project put all config files, like:
grumphp.yml
.styleci.yml
phpcs.xml
psalm.xml
rector.php
codeception.yml
etc.

to /config/static directory. I wonder if it’s better than leave all of this in root directory?
In Yii all config files stay in root. I have some thouts why, but what is your arguments?

I keep everything in the root since usually this is default and moving it somewhere else requires correcting the paths inside.

1 Like

Root is the default for many tools using these configs. That’s why mostly we keed these in root.

1 Like

I have another reason: usually/by default this files is on root, so every programmer expect it on root. Thanks to that everyone just looks on project main directory and known that this project uses Codeception, psalm etc - no need to analyze composer.json or scan subdirectories directories etc.

1 Like