I want a library that can format my code: indentation, line breaks, how to open and close functions, spaces, etc.
We have a team, 5 people, working on the same project, and while some really take care of code formatting, others seems like never heard about organizing code in life.
The project is developed in Laravel, so I have composer easily available. I am looking for a library or some plugin I can install in the project (we use different IDEs, although we are using Docker) that will format our code, on saving or even by manually running some command. Something like what ESLint + Prettier does for javascript.
I found some, like PHP_CodeSniffer and PHP-CS-Fixer, but none of them solves all my problems. Don't know if I'm not being able to configure it correctly or if they are not what I am looking for.
we use different IDEs
" - a very bad idea. Everyone should use the same toolchain. Even if only because it makes it easier to sit at someone's desk and help him.