Skip to content

Instantly share code, notes, and snippets.

Billz95 / .php_cs.dist
Last active Oct 1, 2021
A Customised fixer for PHP-CS-Fixer to use `prettier`'s php plugin to pre-process the code before getting analysed by other fixers. This would enable `php-cs-fixer` to take advantage of `prettier`'s ability of managing long line.
View .php_cs.dist
require_once __DIR__.'/relative/path/to/PrettierPHPFixer/File';
return PhpCsFixer\Config::create()
(new PrettierPHPFixer()),
'Prettier/php' => true,