composer.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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": ">=8.1",
  26. "ext-intl": "*",
  27. "ext-json": "*",
  28. "ext-mbstring": "*",
  29. "cakephp/chronos": "^3.0.2",
  30. "composer/ca-bundle": "^1.2",
  31. "laminas/laminas-diactoros": "^3.0",
  32. "laminas/laminas-httphandlerrunner": "^2.6",
  33. "league/container": "^4.2",
  34. "psr/container": "^1.1 || ^2.0",
  35. "psr/http-client": "^1.0.2",
  36. "psr/http-factory": "^1.0.2",
  37. "psr/http-message": "^1.1 || ^2.0",
  38. "psr/http-server-handler": "^1.0.2",
  39. "psr/http-server-middleware": "^1.0.2",
  40. "psr/log": "^3.0",
  41. "psr/simple-cache": "^2.0 || ^3.0"
  42. },
  43. "replace": {
  44. "cakephp/cache": "self.version",
  45. "cakephp/collection": "self.version",
  46. "cakephp/console": "self.version",
  47. "cakephp/core": "self.version",
  48. "cakephp/database": "self.version",
  49. "cakephp/datasource": "self.version",
  50. "cakephp/event": "self.version",
  51. "cakephp/form": "self.version",
  52. "cakephp/http": "self.version",
  53. "cakephp/i18n": "self.version",
  54. "cakephp/log": "self.version",
  55. "cakephp/orm": "self.version",
  56. "cakephp/utility": "self.version",
  57. "cakephp/validation": "self.version"
  58. },
  59. "require-dev": {
  60. "cakephp/cakephp-codesniffer": "^5.0",
  61. "http-interop/http-factory-tests": "^2.0",
  62. "mikey179/vfsstream": "^1.6.10",
  63. "mockery/mockery": "^1.6",
  64. "paragonie/csp-builder": "^2.3 || ^3.0",
  65. "phpstan/phpstan": "1.11.*",
  66. "phpstan/extension-installer": "^1.3",
  67. "symplify/phpstan-rules": "^12.4",
  68. "phpunit/phpunit": "^10.5.5 || ^11.1.3"
  69. },
  70. "suggest": {
  71. "ext-curl": "To enable more efficient network calls in Http\\Client.",
  72. "ext-openssl": "To use Security::encrypt() or have secure CSRF token generation.",
  73. "lib-ICU": "To use locale-aware features in the I18n and Database packages",
  74. "paragonie/csp-builder": "CSP builder, to use the CSP Middleware"
  75. },
  76. "provide": {
  77. "psr/container-implementation": "^2.0",
  78. "psr/http-client-implementation": "^1.0",
  79. "psr/http-factory-implementation": "^1.0",
  80. "psr/http-server-handler-implementation": "^1.0",
  81. "psr/http-server-middleware-implementation": "^1.0",
  82. "psr/log-implementation": "^3.0",
  83. "psr/simple-cache-implementation": "^3.0"
  84. },
  85. "config": {
  86. "lock": false,
  87. "process-timeout": 900,
  88. "sort-packages": true,
  89. "allow-plugins": {
  90. "dealerdirect/phpcodesniffer-composer-installer": true,
  91. "phpstan/extension-installer": true
  92. }
  93. },
  94. "autoload": {
  95. "psr-4": {
  96. "Cake\\": "src/"
  97. },
  98. "files": [
  99. "src/Core/functions.php",
  100. "src/Error/functions.php",
  101. "src/Collection/functions.php",
  102. "src/I18n/functions.php",
  103. "src/ORM/bootstrap.php",
  104. "src/Routing/functions.php",
  105. "src/Utility/bootstrap.php"
  106. ]
  107. },
  108. "autoload-dev": {
  109. "psr-4": {
  110. "Cake\\PHPStan\\": "tests/PHPStan/",
  111. "Cake\\Test\\": "tests/",
  112. "TestApp\\": "tests/test_app/TestApp/",
  113. "TestApp\\Test\\": "tests/test_app/TestApp/tests/",
  114. "TestPlugin\\": "tests/test_app/Plugin/TestPlugin/src/",
  115. "TestPlugin\\Test\\": "tests/test_app/Plugin/TestPlugin/tests/",
  116. "TestPluginTwo\\": "tests/test_app/Plugin/TestPluginTwo/src/",
  117. "Company\\TestPluginThree\\": "tests/test_app/Plugin/Company/TestPluginThree/src/",
  118. "Company\\TestPluginThree\\Test\\": "tests/test_app/Plugin/Company/TestPluginThree/tests/",
  119. "Named\\": "tests/test_app/Plugin/Named/src/"
  120. }
  121. },
  122. "scripts": {
  123. "check": [
  124. "@cs-check",
  125. "@test"
  126. ],
  127. "cs-check": "phpcs --colors --parallel=16 -p",
  128. "cs-fix": "phpcbf --colors --parallel=16 -p",
  129. "phpstan": "phpstan analyse",
  130. "psalm": "tools/psalm --show-info=false",
  131. "stan": [
  132. "@phpstan",
  133. "@psalm"
  134. ],
  135. "phpstan-tests": "phpstan analyze -c tests/phpstan.neon",
  136. "phpstan-baseline": "phpstan --generate-baseline",
  137. "psalm-baseline": "tools/psalm --set-baseline=psalm-baseline.xml",
  138. "stan-setup": "phive install",
  139. "lowest": "validate-prefer-lowest",
  140. "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",
  141. "test": "phpunit",
  142. "test-coverage": "phpunit --coverage-clover=clover.xml"
  143. },
  144. "support": {
  145. "issues": "https://github.com/cakephp/cakephp/issues",
  146. "forum": "https://stackoverflow.com/tags/cakephp",
  147. "irc": "irc://irc.freenode.org/cakephp",
  148. "source": "https://github.com/cakephp/cakephp"
  149. }
  150. }