composer.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {
  2. "name": "cakephp/cakephp",
  3. "type": "library",
  4. "description": "The CakePHP framework",
  5. "keywords": [
  6. "framework",
  7. "mvc",
  8. "rapid-development",
  9. "conventions over configuration",
  10. "dry",
  11. "orm",
  12. "form",
  13. "validation",
  14. "psr-7"
  15. ],
  16. "homepage": "https://cakephp.org",
  17. "license": "MIT",
  18. "authors": [
  19. {
  20. "name": "CakePHP Community",
  21. "homepage": "https://github.com/cakephp/cakephp/graphs/contributors"
  22. }
  23. ],
  24. "require": {
  25. "php": ">=7.2.0",
  26. "ext-intl": "*",
  27. "ext-json": "*",
  28. "ext-mbstring": "*",
  29. "cakephp/chronos": "^2.2",
  30. "composer/ca-bundle": "^1.2",
  31. "laminas/laminas-diactoros": "^2.2.2",
  32. "laminas/laminas-httphandlerrunner": "^1.1",
  33. "league/container": "^4.2.0",
  34. "psr/container": "^1.1 || ^2.0",
  35. "psr/http-client": "^1.0",
  36. "psr/http-server-handler": "^1.0",
  37. "psr/http-server-middleware": "^1.0",
  38. "psr/log": "^1.0 || ^2.0",
  39. "psr/simple-cache": "^1.0 || ^2.0"
  40. },
  41. "replace": {
  42. "cakephp/cache": "self.version",
  43. "cakephp/collection": "self.version",
  44. "cakephp/console": "self.version",
  45. "cakephp/core": "self.version",
  46. "cakephp/database": "self.version",
  47. "cakephp/datasource": "self.version",
  48. "cakephp/event": "self.version",
  49. "cakephp/filesystem": "self.version",
  50. "cakephp/form": "self.version",
  51. "cakephp/http": "self.version",
  52. "cakephp/i18n": "self.version",
  53. "cakephp/log": "self.version",
  54. "cakephp/orm": "self.version",
  55. "cakephp/utility": "self.version",
  56. "cakephp/validation": "self.version"
  57. },
  58. "require-dev": {
  59. "cakephp/cakephp-codesniffer": "^4.5",
  60. "mikey179/vfsstream": "^1.6.10",
  61. "paragonie/csp-builder": "^2.3",
  62. "phpunit/phpunit": "^8.5 || ^9.3"
  63. },
  64. "suggest": {
  65. "ext-curl": "To enable more efficient network calls in Http\\Client.",
  66. "ext-openssl": "To use Security::encrypt() or have secure CSRF token generation.",
  67. "lib-ICU": "The intl PHP library, to use Text::transliterate() or Text::slug()",
  68. "paragonie/csp-builder": "CSP builder, to use the CSP Middleware"
  69. },
  70. "config": {
  71. "process-timeout": 900,
  72. "sort-packages": true,
  73. "allow-plugins": {
  74. "dealerdirect/phpcodesniffer-composer-installer": true
  75. }
  76. },
  77. "autoload": {
  78. "psr-4": {
  79. "Cake\\": "src/"
  80. },
  81. "files": [
  82. "src/Core/functions.php",
  83. "src/Collection/functions.php",
  84. "src/I18n/functions.php",
  85. "src/Routing/functions.php",
  86. "src/Utility/bootstrap.php"
  87. ]
  88. },
  89. "autoload-dev": {
  90. "psr-4": {
  91. "Cake\\PHPStan\\": "tests/PHPStan/",
  92. "Cake\\Test\\": "tests/",
  93. "TestApp\\": "tests/test_app/TestApp/",
  94. "TestApp\\Test\\": "tests/test_app/TestApp/tests/",
  95. "TestPlugin\\": "tests/test_app/Plugin/TestPlugin/src/",
  96. "TestPlugin\\Test\\": "tests/test_app/Plugin/TestPlugin/tests/",
  97. "TestPluginTwo\\": "tests/test_app/Plugin/TestPluginTwo/src/",
  98. "Company\\TestPluginThree\\": "tests/test_app/Plugin/Company/TestPluginThree/src/",
  99. "Company\\TestPluginThree\\Test\\": "tests/test_app/Plugin/Company/TestPluginThree/tests/",
  100. "ParentPlugin\\": "tests/test_app/Plugin/ParentPlugin/src/"
  101. }
  102. },
  103. "scripts": {
  104. "check": [
  105. "@cs-check",
  106. "@test"
  107. ],
  108. "cs-check": "phpcs --colors --parallel=16 -p src/ tests/",
  109. "cs-fix": "phpcbf --colors --parallel=16 -p src/ tests/",
  110. "phpstan": "phpstan.phar analyse",
  111. "psalm": "psalm.phar --show-info=false",
  112. "stan": [
  113. "@phpstan",
  114. "@psalm"
  115. ],
  116. "stan-tests": "phpstan.phar analyze -c tests/phpstan.neon",
  117. "stan-setup": "cp composer.json composer.backup && composer require --dev symfony/polyfill-php81 phpstan/phpstan:~1.4.0 psalm/phar:~4.19.0 && mv composer.backup composer.json",
  118. "lowest": "validate-prefer-lowest",
  119. "lowest-setup": "composer update --prefer-lowest --prefer-stable --prefer-dist --no-interaction && cp composer.json composer.backup && composer require --dev dereuromark/composer-prefer-lowest && mv composer.backup composer.json",
  120. "test": "phpunit",
  121. "test-coverage": "phpunit --coverage-clover=clover.xml"
  122. },
  123. "support": {
  124. "issues": "https://github.com/cakephp/cakephp/issues",
  125. "forum": "https://stackoverflow.com/tags/cakephp",
  126. "irc": "irc://irc.freenode.org/cakephp",
  127. "source": "https://github.com/cakephp/cakephp"
  128. }
  129. }