composer.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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.0",
  39. "psr/simple-cache": "^1.0.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. },
  74. "autoload": {
  75. "psr-4": {
  76. "Cake\\": "src/"
  77. },
  78. "files": [
  79. "src/Core/functions.php",
  80. "src/Collection/functions.php",
  81. "src/I18n/functions.php",
  82. "src/Routing/functions.php",
  83. "src/Utility/bootstrap.php"
  84. ]
  85. },
  86. "autoload-dev": {
  87. "psr-4": {
  88. "Cake\\PHPStan\\": "tests/PHPStan/",
  89. "Cake\\Test\\": "tests/",
  90. "TestApp\\": "tests/test_app/TestApp/",
  91. "TestApp\\Test\\": "tests/test_app/TestApp/tests/",
  92. "TestPlugin\\": "tests/test_app/Plugin/TestPlugin/src/",
  93. "TestPlugin\\Test\\": "tests/test_app/Plugin/TestPlugin/tests/",
  94. "TestPluginTwo\\": "tests/test_app/Plugin/TestPluginTwo/src/",
  95. "Company\\TestPluginThree\\": "tests/test_app/Plugin/Company/TestPluginThree/src/",
  96. "Company\\TestPluginThree\\Test\\": "tests/test_app/Plugin/Company/TestPluginThree/tests/",
  97. "ParentPlugin\\": "tests/test_app/Plugin/ParentPlugin/src/"
  98. }
  99. },
  100. "scripts": {
  101. "check": [
  102. "@cs-check",
  103. "@test"
  104. ],
  105. "cs-check": "phpcs --colors --parallel=16 -p src/ tests/",
  106. "cs-fix": "phpcbf --colors --parallel=16 -p src/ tests/",
  107. "phpstan": "phpstan.phar analyse",
  108. "psalm": "psalm.phar --show-info=false",
  109. "stan": [
  110. "@phpstan",
  111. "@psalm"
  112. ],
  113. "stan-tests": "phpstan.phar analyze -c tests/phpstan.neon",
  114. "stan-setup": "cp composer.json composer.backup && composer require --dev symfony/polyfill-php81 phpstan/phpstan:~1.0.0 psalm/phar:~4.11.0 && mv composer.backup composer.json",
  115. "lowest": "validate-prefer-lowest",
  116. "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",
  117. "test": "phpunit",
  118. "test-coverage": "phpunit --coverage-clover=clover.xml"
  119. },
  120. "support": {
  121. "issues": "https://github.com/cakephp/cakephp/issues",
  122. "forum": "https://stackoverflow.com/tags/cakephp",
  123. "irc": "irc://irc.freenode.org/cakephp",
  124. "source": "https://github.com/cakephp/cakephp"
  125. }
  126. }