squizlabs/PHP_CodeSniffer ? reverse-engineered prompt

Reverse engineered prompt

Build me a PHP command line tool that checks code style and fixes common style problems automatically.

I want one command that scans PHP files, and can also handle JavaScript and CSS, then reports any coding standard violations in a clear way. I also want a second command that can automatically исправить the issues it knows how to fix. It should support running on a single file or an entire folder, and let me choose a coding standard like the default one or PSR 12.

Please make it feel like a real developer tool, with good help text, useful error messages, and simple configuration so a project can define its own rules. If there are tests or examples needed, include them. Look up current docs online if you need to, but keep the setup easy so I can run it from the command line right away.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab