publiq/php-cs-fixer-config

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

Package info

github.com/cultuurnet/php-cs-fixer-config

pkg:composer/publiq/php-cs-fixer-config

Statistics

Installs: 49 291

Dependents: 7

Suggesters: 0

Stars: 0

Open Issues: 1

v2.1 2024-08-07 12:40 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-3.0-only 13a065c444c8916205bbeed1aeb2936e24ab6eaf

  • Publiq vzw <info.woop@publiq.be>

This package is auto-updated.

Last update: 2026-06-07 16:49:09 UTC


README

Installation

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.

<?php
return Publiq\PhpCsFixer\Config::fromFolders(
 [
 'src/',
 'test/',
 ]
);

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"
}