lst / typo3-phpcsfixer
The PHP Coding Standards Fixer rules used for LST TYPO3 projects
0.2.2
2024-08-25 22:42 UTC
Requires
- php: ^8.1
- typo3/coding-standards: ^0.7
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.