# Use single CS config during plugin dev

**URL:** <https://forum.mautic.org/t/use-single-cs-config-during-plugin-dev/28478>\
**Category:** Development\
**Created:** [July 1, 2023, 11:21am UTC](https://forum.mautic.org/t/use-single-cs-config-during-plugin-dev/28478 "2023-07-01T11:21:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [July 1, 2023, 11:21am UTC](https://forum.mautic.org/t/use-single-cs-config-during-plugin-dev/28478/1 "2023-07-01T11:21:12Z")

</div>

Hi,

I am developing a plugin… and I would like to use cs fixer config from here: \< [mautic/.php-cs-fixer.php at f8dff820785704b24608e5c2062ef6b206635070 · mautic/mautic · GitHub](https://github.com/mautic/mautic/blob/f8dff820785704b24608e5c2062ef6b206635070/.php-cs-fixer.php) \> in my project and adjust the config to look just into the plugin I am developing at the moment, but I would have to maintain that.

Now I would like to use cs config from official mautic repo in a way that it looks just into my plugin folder for the duration of plugin development.

I suggest we define variable in .env file (DEV\_PLUGIN\_DIR) and then read it inside cs config file and if its defined we make script use only that folder in inspection, otherwise we use default $finder config.

Would you consider merging something like that, if I write it up and make a PR?

Thanks.  
Regards, M.
