composer.json 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. {
  2. "name": "friendsofphp/php-cs-fixer",
  3. "description": "A tool to automatically fix PHP code style",
  4. "license": "MIT",
  5. "type": "application",
  6. "keywords": [
  7. "fixer",
  8. "standards",
  9. "static analysis",
  10. "static code analysis"
  11. ],
  12. "authors": [
  13. {
  14. "name": "Fabien Potencier",
  15. "email": "fabien@symfony.com"
  16. },
  17. {
  18. "name": "Dariusz Rumiński",
  19. "email": "dariusz.ruminski@gmail.com"
  20. }
  21. ],
  22. "require": {
  23. "php": "^7.4 || ^8.0",
  24. "ext-filter": "*",
  25. "ext-json": "*",
  26. "ext-tokenizer": "*",
  27. "clue/ndjson-react": "^1.0",
  28. "composer/semver": "^3.4",
  29. "composer/xdebug-handler": "^3.0.3",
  30. "fidry/cpu-core-counter": "^1.0",
  31. "react/child-process": "^0.6.5",
  32. "react/event-loop": "^1.0",
  33. "react/promise": "^2.0 || ^3.0",
  34. "react/socket": "^1.0",
  35. "react/stream": "^1.0",
  36. "sebastian/diff": "^4.0 || ^5.0 || ^6.0",
  37. "symfony/console": "^5.4 || ^6.0 || ^7.0",
  38. "symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0",
  39. "symfony/filesystem": "^5.4 || ^6.0 || ^7.0",
  40. "symfony/finder": "^5.4 || ^6.0 || ^7.0",
  41. "symfony/options-resolver": "^5.4 || ^6.0 || ^7.0",
  42. "symfony/polyfill-mbstring": "^1.28",
  43. "symfony/polyfill-php80": "^1.28",
  44. "symfony/polyfill-php81": "^1.28",
  45. "symfony/process": "^5.4 || ^6.0 || ^7.0",
  46. "symfony/stopwatch": "^5.4 || ^6.0 || ^7.0"
  47. },
  48. "require-dev": {
  49. "facile-it/paraunit": "^1.3 || ^2.3",
  50. "infection/infection": "^0.29.5",
  51. "justinrainbow/json-schema": "^5.2",
  52. "keradus/cli-executor": "^2.1",
  53. "mikey179/vfsstream": "^1.6.11",
  54. "php-coveralls/php-coveralls": "^2.7",
  55. "php-cs-fixer/accessible-object": "^1.1",
  56. "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.5",
  57. "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.5",
  58. "phpunit/phpunit": "^9.6.19 || ^10.5.21 || ^11.2",
  59. "symfony/var-dumper": "^5.4 || ^6.0 || ^7.0",
  60. "symfony/yaml": "^5.4 || ^6.0 || ^7.0"
  61. },
  62. "suggest": {
  63. "ext-dom": "For handling output formats in XML",
  64. "ext-mbstring": "For handling non-UTF8 characters."
  65. },
  66. "autoload": {
  67. "psr-4": {
  68. "PhpCsFixer\\": "src/"
  69. },
  70. "exclude-from-classmap": [
  71. "src/Fixer/Internal/*"
  72. ]
  73. },
  74. "autoload-dev": {
  75. "psr-4": {
  76. "PhpCsFixer\\Tests\\": "tests/"
  77. }
  78. },
  79. "bin": [
  80. "php-cs-fixer"
  81. ],
  82. "config": {
  83. "allow-plugins": {
  84. "ergebnis/composer-normalize": true,
  85. "infection/extension-installer": false
  86. },
  87. "prefer-stable": true,
  88. "sort-packages": true
  89. },
  90. "scripts": {
  91. "post-autoload-dump": [
  92. "@install-tools"
  93. ],
  94. "auto-review": [
  95. "Composer\\Config::disableProcessTimeout",
  96. "paraunit run --testsuite auto-review"
  97. ],
  98. "cs:check": "@php php-cs-fixer check --verbose --diff",
  99. "cs:fix": "@php php-cs-fixer fix",
  100. "cs:fix:parallel": [
  101. "echo '⚠️ This script is deprecated! Utilise built-in parallelisation instead.';",
  102. "@cs:fix"
  103. ],
  104. "docs": "@php dev-tools/doc.php",
  105. "infection": "@test:mutation",
  106. "install-tools": "@composer --working-dir=dev-tools install",
  107. "mess-detector": "@php dev-tools/vendor/bin/phpmd . ansi dev-tools/mess-detector/phpmd.xml --exclude vendor/*,dev-tools/vendor/*,dev-tools/phpstan/*,tests/Fixtures/*",
  108. "normalize": [
  109. "@composer normalize --working-dir=dev-tools --dry-run ../composer.json",
  110. "@composer normalize --working-dir=dev-tools --dry-run composer.json"
  111. ],
  112. "phpstan": "@php -d memory_limit=512M dev-tools/vendor/bin/phpstan analyse",
  113. "phpstan:baseline": "@php -d memory_limit=512M dev-tools/vendor/bin/phpstan analyse --generate-baseline=./dev-tools/phpstan/baseline.php",
  114. "qa": "@quality-assurance",
  115. "quality-assurance": [
  116. "Composer\\Config::disableProcessTimeout",
  117. "@install-tools --quiet",
  118. "@self-check",
  119. "@static-analysis",
  120. "@test"
  121. ],
  122. "require-checker": "@php dev-tools/vendor/bin/composer-require-checker check composer.json --config-file .composer-require-checker.json",
  123. "sa": "@static-analysis",
  124. "self-check": [
  125. "./dev-tools/check_file_permissions.sh",
  126. "./dev-tools/check_trailing_spaces.sh",
  127. "@normalize",
  128. "@unused-deps",
  129. "@require-checker",
  130. "@auto-review"
  131. ],
  132. "static-analysis": [
  133. "@cs:check",
  134. "@phpstan",
  135. "@mess-detector"
  136. ],
  137. "test": "@test:all",
  138. "test:all": [
  139. "@test:unit",
  140. "@test:integration"
  141. ],
  142. "test:coverage": [
  143. "Composer\\Config::disableProcessTimeout",
  144. "@composer show facile-it/paraunit ^2 && (paraunit coverage --testsuite unit --pass-through=--exclude-group=covers-nothing) || (paraunit coverage --testsuite unit --exclude-group covers-nothing)"
  145. ],
  146. "test:integration": [
  147. "Composer\\Config::disableProcessTimeout",
  148. "paraunit run --testsuite integration"
  149. ],
  150. "test:mutation": [
  151. "Composer\\Config::disableProcessTimeout",
  152. "infection --threads=max --only-covered --min-covered-msi=80"
  153. ],
  154. "test:short-open-tag": [
  155. "Composer\\Config::disableProcessTimeout",
  156. "@php -d short_open_tag=1 ./vendor/bin/phpunit --do-not-cache-result --testsuite short-open-tag"
  157. ],
  158. "test:smoke": [
  159. "Composer\\Config::disableProcessTimeout",
  160. "paraunit run --testsuite smoke"
  161. ],
  162. "test:unit": [
  163. "Composer\\Config::disableProcessTimeout",
  164. "paraunit run --testsuite unit"
  165. ],
  166. "unused-deps": "@php dev-tools/vendor/bin/composer-unused --excludePackage=composer/xdebug-handler"
  167. },
  168. "scripts-descriptions": {
  169. "auto-review": "Execute Auto-review",
  170. "cs:check": "Check coding standards",
  171. "cs:fix": "Fix coding standards",
  172. "cs:fix:parallel": "⚠️DEPRECATED! Use cs:fix with proper parallel config",
  173. "docs": "Regenerate docs",
  174. "infection": "Alias for 'test:mutation'",
  175. "install-tools": "Install DEV tools",
  176. "mess-detector": "Analyse code with Mess Detector",
  177. "normalize": "Run normalization for composer.json files",
  178. "phpstan": "Run PHPStan analysis",
  179. "phpstan:baseline": "Dump PHPStan baseline file - use only for updating, do not add new errors when possible",
  180. "post-autoload-dump": "Run additional tasks after installing/updating main dependencies",
  181. "qa": "Alias for 'quality-assurance'",
  182. "quality-assurance": "Run QA suite",
  183. "require-checker": "Verifies if codebase does not contain soft dependencies",
  184. "sa": "Alias for 'static-analysis'",
  185. "self-check": "Run set of self-checks ensuring repository's validity",
  186. "static-analysis": "Run static analysis",
  187. "test": "Alias for 'test:all'",
  188. "test:all": "Run Unit and Integration tests (but *NOT* Smoke tests)",
  189. "test:coverage": "Run tests that provide code coverage",
  190. "test:integration": "Run Integration tests",
  191. "test:mutation": "Run mutation tests",
  192. "test:short-open-tag": "Run tests with \"short_open_tag\" enabled",
  193. "test:smoke": "Run Smoke tests",
  194. "test:unit": "Run Unit tests",
  195. "unused-deps": "Verifies if app has dependencies that are not used"
  196. }
  197. }