lst/typo3-phpcsfixer

The PHP Coding Standards Fixer rules used for LST TYPO3 projects

Installs: 208

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/lst/typo3-phpcsfixer

0.2.2 2024-08-25 22:42 UTC

This package is auto-updated.

Last update: 2025-09-26 00:54:59 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.