lst/typo3-phpcsfixer

The PHP Coding Standards Fixer rules used for LST TYPO3 projects

0.2.2 2024-08-25 22:42 UTC

This package is auto-updated.

Last update: 2024-11-25 23:09:28 UTC


README

This package provides a PHP Coding Standards Fixer configuration with official rules used by the TYPO3 CMS mixed with rules defined for LST TYPO3 projects.

Setup

Install the package via composer:

composer require lst/typo3-phpcsfixer --dev

Configuration

Create a configuration file .php-cs-fixer.php in the root of your project and configure the path to the sources, e.g. packages:

<?php

$config = \LST\TYPO3PhpCsFixer\CsFixerConfig::create();
$config->getFinder()
    ->in('packages');

return $config;

Usage

Run composer exec php-cs-fixer fix to run the fixer.