composer.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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.4.0,<9",
  26. "ext-intl": "*",
  27. "ext-json": "*",
  28. "ext-mbstring": "*",
  29. "cakephp/chronos": "^2.4.0-RC2",
  30. "composer/ca-bundle": "^1.2",
  31. "laminas/laminas-diactoros": "^2.2.2",
  32. "laminas/laminas-httphandlerrunner": "^1.1 || ^2.0",
  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 || ^3.0",
  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": "To use locale-aware features in the I18n and Database packages",
  68. "paragonie/csp-builder": "CSP builder, to use the CSP Middleware"
  69. },
  70. "provide": {
  71. "psr/container-implementation": "^1.0 || ^2.0",
  72. "psr/http-client-implementation": "^1.0",
  73. "psr/http-server-handler-implementation": "^1.0",
  74. "psr/http-server-middleware-implementation": "^1.0",
  75. "psr/log-implementation": "^1.0 || ^2.0",
  76. "psr/simple-cache-implementation": "^1.0 || ^2.0"
  77. },
  78. "config": {
  79. "process-timeout": 900,
  80. "sort-packages": true,
  81. "allow-plugins": {
  82. "dealerdirect/phpcodesniffer-composer-installer": true
  83. }
  84. },
  85. "autoload": {
  86. "psr-4": {
  87. "Cake\\": "src/"
  88. },
  89. "files": [
  90. "src/Core/functions.php",
  91. "src/Error/functions.php",
  92. "src/Collection/functions.php",
  93. "src/I18n/functions.php",
  94. "src/Routing/functions.php",
  95. "src/Utility/bootstrap.php"
  96. ]
  97. },
  98. "autoload-dev": {
  99. "psr-4": {
  100. "Cake\\PHPStan\\": "tests/PHPStan/",
  101. "Cake\\Test\\": "tests/",
  102. "TestApp\\": "tests/test_app/TestApp/",
  103. "TestApp\\Test\\": "tests/test_app/TestApp/tests/",
  104. "TestPlugin\\": "tests/test_app/Plugin/TestPlugin/src/",
  105. "TestPlugin\\Test\\": "tests/test_app/Plugin/TestPlugin/tests/",
  106. "TestPluginTwo\\": "tests/test_app/Plugin/TestPluginTwo/src/",
  107. "Company\\TestPluginThree\\": "tests/test_app/Plugin/Company/TestPluginThree/src/",
  108. "Company\\TestPluginThree\\Test\\": "tests/test_app/Plugin/Company/TestPluginThree/tests/",
  109. "Named\\": "tests/test_app/Plugin/Named/src/"
  110. }
  111. },
  112. "scripts": {
  113. "check": [
  114. "@cs-check",
  115. "@test"
  116. ],
  117. "cs-check": "phpcs --colors --parallel=16 -p src/ tests/",
  118. "cs-fix": "phpcbf --colors --parallel=16 -p src/ tests/",
  119. "phpstan": "tools/phpstan analyse",
  120. "psalm": "tools/psalm --show-info=false",
  121. "stan": [
  122. "@phpstan",
  123. "@psalm"
  124. ],
  125. "stan-tests": "phpstan.phar analyze -c tests/phpstan.neon",
  126. "stan-baseline": "phpstan.phar --generate-baseline",
  127. "stan-setup": "phive install",
  128. "lowest": "validate-prefer-lowest",
  129. "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",
  130. "test": "phpunit",
  131. "test-coverage": "phpunit --coverage-clover=clover.xml"
  132. },
  133. "support": {
  134. "issues": "https://github.com/cakephp/cakephp/issues",
  135. "forum": "https://stackoverflow.com/tags/cakephp",
  136. "irc": "irc://irc.freenode.org/cakephp",
  137. "source": "https://github.com/cakephp/cakephp"
  138. }
  139. }