composer.json
{
"name": "eliashaeussler/phpstan-config",
"description": "My personal configuration for PHPStan",
"license": "GPL-3.0-or-later",
"type": "library",
"authors": [
{
"name": "Elias Häußler",
"email": "elias@haeussler.dev",
"homepage": "https://haeussler.dev",
"role": "Maintainer"
}
],
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-strict-rules": "^1.4"
},
"require-dev": {
"armin/editorconfig-cli": "^1.8 || ^2.0",
"eliashaeussler/php-cs-fixer-config": "^2.0",
"eliashaeussler/rector-config": "^3.0",
"ergebnis/composer-normalize": "^2.29",
"phpunit/phpunit": "^10.1 || ^11.0"
},
"autoload": {
"psr-4": {
"EliasHaeussler\\PHPStanConfig\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"EliasHaeussler\\PHPStanConfig\\Tests\\": "tests/unit/"
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
},
"sort-packages": true
},
"extra": {
"phpstan": {
"includes": [
"phpstan-base.neon.dist"
]
}
},
"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.php",
"test": [
"@test:e2e",
"@test:unit"
],
"test:e2e": [
"@test:e2e:extension-installer",
"@test:e2e:manual"
],
"test:e2e:extension-installer": [
"@composer -d tests/e2e/extension-installer install",
"@composer -d tests/e2e/extension-installer test"
],
"test:e2e:manual": [
"@composer -d tests/e2e/manual install",
"@composer -d tests/e2e/manual test"
],
"test:unit": "@test:unit:coverage --no-coverage",
"test:unit:coverage": "phpunit -c phpunit.xml"
}
}