Configuration for PHP Coding Standards Fixer to be used on all PHP projects at Publiq

v2.0 2021-05-06 07:21 UTC

This package is auto-updated.

Last update: 2023-11-06 12:51:50 UTC



Add this library as a dev dependency to your project

composer require --dev publiq/php-cs-fixer-config

Add the following to the .php_cs file in the root of your repository and modify based on your application.

return Publiq\PhpCsFixer\Config::fromFolders(

You can add the following to your composer file for ease of use

"scripts": {
  "cs": "php-cs-fixer fix -v --diff --dry-run",
  "cs-fix": "php-cs-fixer fix -v --diff"