CPS-IT/php-cs-fixer-config

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
    "name": "cpsit/php-cs-fixer-config",
    "description": "Shared PHP-CS-Fixer configuration for CPS projects",
    "license": "GPL-3.0-or-later",
    "type": "library",
    "authors": [
        {
            "name": "Elias Häußler",
            "email": "e.haeussler@familie-redlich.de",
            "homepage": "https://www.cps-it.de",
            "role": "Maintainer"
        }
    ],
    "require": {
        "php": "~8.1.0 || ~8.2.0 || ~8.3.0",
        "friendsofphp/php-cs-fixer": "^3.14"
    },
    "require-dev": {
        "armin/editorconfig-cli": "^1.8 || ^2.0",
        "ergebnis/composer-normalize": "^2.41",
        "phpstan/extension-installer": "^1.3",
        "phpstan/phpstan": "^1.10",
        "phpstan/phpstan-deprecation-rules": "^1.1",
        "phpstan/phpstan-phpunit": "^1.3",
        "phpstan/phpstan-strict-rules": "^1.5",
        "phpunit/phpunit": "^10.1 || ^11.0",
        "rector/rector": "^1.0.0"
    },
    "autoload": {
        "psr-4": {
            "CPSIT\\PhpCsFixerConfig\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "CPSIT\\PhpCsFixerConfig\\Tests\\": "tests/src/"
        }
    },
    "config": {
        "allow-plugins": {
            "ergebnis/composer-normalize": true,
            "phpstan/extension-installer": true
        },
        "sort-packages": true
    },
    "scripts": {
        "fix": [
            "@fix:composer",
            "@fix:editorconfig",
            "@fix:php"
        ],
        "fix:composer": "@composer normalize",
        "fix:editorconfig": "@lint:editorconfig --fix",
        "fix:php": "php-cs-fixer fix",
        "lint": [
            "@lint:composer",
            "@lint:editorconfig",
            "@lint:php"
        ],
        "lint:composer": "@fix:composer --dry-run",
        "lint:editorconfig": "ec",
        "lint:php": "@fix:php --dry-run",
        "migration": [
            "@migration:rector"
        ],
        "migration:rector": "rector process -c rector.php",
        "sca": [
            "@sca:php"
        ],
        "sca:php": "phpstan analyse -c phpstan.neon",
        "test": "@test:coverage --no-coverage",
        "test:coverage": "phpunit -c phpunit.xml"
    }
}