Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kyos's avatar
Level 6

PHP Coding Standards Fixer PSR2

Hi guys Im trying to use php fixer with PSR2.

Ive created a file "PHP.sublime-bluid" with this:

{
    "shell_cmd": "php php-cs-fixer.phar fix $file --level=psr2"
}

But it gives me an error when I use "cmd + b"

Could not open input file: php-cs-fixer.phar.

I dont know what im doing wrong :(

0 likes
6 replies
kyos's avatar
Level 6

Specify the full path in my shell command?

toniperic's avatar
Level 30

Something like

{
    "shell_cmd": "php /your/path/to/php-cs-fixer.phar fix $file --level=psr2"
}

Hope that helps.

kyos's avatar
Level 6

Tanks man work like a charm!

Please or to participate in this conversation.