| 1 |
{ |
| 2 |
"name": "sabberworm/php-css-parser", |
| 3 |
"description": "Parser for CSS Files written in PHP", |
| 4 |
"license": "MIT", |
| 5 |
"type": "library", |
| 6 |
"keywords": [ |
| 7 |
"parser", |
| 8 |
"css", |
| 9 |
"stylesheet" |
| 10 |
], |
| 11 |
"authors": [ |
| 12 |
{ |
| 13 |
"name": "Raphael Schweikert" |
| 14 |
}, |
| 15 |
{ |
| 16 |
"name": "Oliver Klee", |
| 17 |
"email": "[email protected]" |
| 18 |
}, |
| 19 |
{ |
| 20 |
"name": "Jake Hotson", |
| 21 |
"email": "[email protected]" |
| 22 |
} |
| 23 |
], |
| 24 |
"homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser", |
| 25 |
"require": { |
| 26 |
"php": "^7.2.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", |
| 27 |
"ext-iconv": "*", |
| 28 |
"thecodingmachine/safe": "^1.3 || ^2.5 || ^3.4" |
| 29 |
}, |
| 30 |
"require-dev": { |
| 31 |
"php-parallel-lint/php-parallel-lint": "1.4.0", |
| 32 |
"phpstan/extension-installer": "1.4.3", |
| 33 |
"phpstan/phpstan": "1.12.32 || 2.1.32", |
| 34 |
"phpstan/phpstan-phpunit": "1.4.2 || 2.0.8", |
| 35 |
"phpstan/phpstan-strict-rules": "1.6.2 || 2.0.7", |
| 36 |
"phpunit/phpunit": "8.5.52", |
| 37 |
"rawr/phpunit-data-provider": "3.3.1", |
| 38 |
"rector/rector": "1.2.10 || 2.2.8", |
| 39 |
"rector/type-perfect": "1.0.0 || 2.1.0", |
| 40 |
"squizlabs/php_codesniffer": "4.0.1", |
| 41 |
"thecodingmachine/phpstan-safe-rule": "1.2.0 || 1.4.1" |
| 42 |
}, |
| 43 |
"suggest": { |
| 44 |
"ext-mbstring": "for parsing UTF-8 CSS" |
| 45 |
}, |
| 46 |
"autoload": { |
| 47 |
"psr-4": { |
| 48 |
"Sabberworm\\CSS\\": "src/" |
| 49 |
}, |
| 50 |
"files": [ |
| 51 |
"src/Rule/Rule.php", |
| 52 |
"src/RuleSet/RuleContainer.php" |
| 53 |
] |
| 54 |
}, |
| 55 |
"autoload-dev": { |
| 56 |
"psr-4": { |
| 57 |
"Sabberworm\\CSS\\Tests\\": "tests/" |
| 58 |
} |
| 59 |
}, |
| 60 |
"config": { |
| 61 |
"allow-plugins": { |
| 62 |
"phpstan/extension-installer": true |
| 63 |
}, |
| 64 |
"preferred-install": { |
| 65 |
"*": "dist" |
| 66 |
}, |
| 67 |
"sort-packages": true |
| 68 |
}, |
| 69 |
"extra": { |
| 70 |
"branch-alias": { |
| 71 |
"dev-main": "9.4.x-dev" |
| 72 |
} |
| 73 |
}, |
| 74 |
"scripts": { |
| 75 |
"check": [ |
| 76 |
"@check:static", |
| 77 |
"@check:dynamic" |
| 78 |
], |
| 79 |
"check:composer:normalize": "\"./.phive/composer-normalize\" --dry-run", |
| 80 |
"check:dynamic": [ |
| 81 |
"@check:tests" |
| 82 |
], |
| 83 |
"check:php:codesniffer": "phpcs --standard=config/phpcs.xml bin config src tests", |
| 84 |
"check:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin config src tests", |
| 85 |
"check:php:lint": "parallel-lint bin config src tests", |
| 86 |
"check:php:rector": "rector process --no-progress-bar --dry-run --config=config/rector.php", |
| 87 |
"check:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon", |
| 88 |
"check:static": [ |
| 89 |
"@check:composer:normalize", |
| 90 |
"@check:php:fixer", |
| 91 |
"@check:php:codesniffer", |
| 92 |
"@check:php:lint", |
| 93 |
"@check:php:rector", |
| 94 |
"@check:php:stan" |
| 95 |
], |
| 96 |
"check:tests": [ |
| 97 |
"@check:tests:unit" |
| 98 |
], |
| 99 |
"check:tests:coverage": "phpunit --do-not-cache-result --coverage-clover=coverage.xml", |
| 100 |
"check:tests:sof": "phpunit --stop-on-failure --do-not-cache-result", |
| 101 |
"check:tests:unit": "phpunit --do-not-cache-result", |
| 102 |
"fix": [ |
| 103 |
"@fix:php" |
| 104 |
], |
| 105 |
"fix:composer:normalize": "\"./.phive/composer-normalize\" --no-check-lock", |
| 106 |
"fix:php": [ |
| 107 |
"@fix:composer:normalize", |
| 108 |
"@fix:php:rector", |
| 109 |
"@fix:php:codesniffer", |
| 110 |
"@fix:php:fixer" |
| 111 |
], |
| 112 |
"fix:php:codesniffer": "phpcbf --standard=config/phpcs.xml bin config src tests", |
| 113 |
"fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix bin config src tests", |
| 114 |
"fix:php:rector": "rector process --config=config/rector.php", |
| 115 |
"phpstan:baseline": "phpstan --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon --allow-empty-baseline", |
| 116 |
"phpstan:clearcache": "phpstan clear-result-cache" |
| 117 |
}, |
| 118 |
"scripts-descriptions": { |
| 119 |
"check": "Runs all dynamic and static code checks.", |
| 120 |
"check:composer:normalize": "Checks the formatting and structure of the composer.json.", |
| 121 |
"check:dynamic": "Runs all dynamic code checks (i.e., currently, the unit tests).", |
| 122 |
"check:php:codesniffer": "Checks the code style with PHP_CodeSniffer.", |
| 123 |
"check:php:fixer": "Checks the code style with PHP CS Fixer.", |
| 124 |
"check:php:lint": "Checks the syntax of the PHP code.", |
| 125 |
"check:php:rector": "Checks the code for possible code updates and refactoring.", |
| 126 |
"check:php:stan": "Checks the types with PHPStan.", |
| 127 |
"check:static": "Runs all static code analysis checks for the code.", |
| 128 |
"check:tests": "Runs all dynamic tests (i.e., currently, the unit tests).", |
| 129 |
"check:tests:coverage": "Runs the unit tests with code coverage.", |
| 130 |
"check:tests:sof": "Runs the unit tests and stops at the first failure.", |
| 131 |
"check:tests:unit": "Runs all unit tests.", |
| 132 |
"fix": "Runs all fixers", |
| 133 |
"fix:composer:normalize": "Reformats and sorts the composer.json file.", |
| 134 |
"fix:php": "Autofixes all autofixable issues in the PHP code.", |
| 135 |
"fix:php:codesniffer": "Reformats the code with PHP_CodeSniffer.", |
| 136 |
"fix:php:fixer": "Fixes autofixable issues found by PHP CS Fixer.", |
| 137 |
"fix:php:rector": "Fixes autofixable issues found by Rector.", |
| 138 |
"phpstan:baseline": "Updates the PHPStan baseline file to match the code.", |
| 139 |
"phpstan:clearcache": "Clears the PHPStan cache." |
| 140 |
} |
| 141 |
} |