composer.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "name": "cakephp/cakephp",
  3. "description": "The CakePHP framework",
  4. "type": "library",
  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. "support": {
  25. "issues": "https://github.com/cakephp/cakephp/issues",
  26. "forum": "https://stackoverflow.com/tags/cakephp",
  27. "irc": "irc://irc.freenode.org/cakephp",
  28. "source": "https://github.com/cakephp/cakephp"
  29. },
  30. "require": {
  31. "php": ">=5.6.0,<8.0.0",
  32. "ext-intl": "*",
  33. "ext-mbstring": "*",
  34. "cakephp/chronos": "^1.0.1",
  35. "aura/intl": "^3.0.0",
  36. "laminas/laminas-diactoros": "^1.4.0",
  37. "psr/log": "^1.0.0",
  38. "psr/simple-cache": "^1.0.0",
  39. "paragonie/random_compat": "^1.4|^2.0|9.99.99"
  40. },
  41. "suggest": {
  42. "ext-openssl": "To use Security::encrypt() or have secure CSRF token generation.",
  43. "ext-curl": "To enable more efficient network calls in Http\\Client.",
  44. "lib-ICU": "The intl PHP library, to use Text::transliterate() or Text::slug()",
  45. "paragonie/csp-builder": "CSP builder, to use the CSP Middleware"
  46. },
  47. "require-dev": {
  48. "cakephp/cakephp-codesniffer": "^3.0",
  49. "cakephp/chronos": "^1.2.1",
  50. "phpunit/phpunit": "^5.7.14|^6.0",
  51. "paragonie/csp-builder": "^1.4|^2.3"
  52. },
  53. "autoload": {
  54. "psr-4": {
  55. "Cake\\": "src/"
  56. },
  57. "files": [
  58. "src/Core/functions.php",
  59. "src/Collection/functions.php",
  60. "src/I18n/functions.php",
  61. "src/Utility/bootstrap.php"
  62. ]
  63. },
  64. "autoload-dev": {
  65. "psr-4": {
  66. "Cake\\PHPStan\\": "tests/PHPStan/",
  67. "Cake\\Test\\": "tests/",
  68. "TestApp\\": "tests/test_app/TestApp/",
  69. "TestPlugin\\": "tests/test_app/Plugin/TestPlugin/src/",
  70. "TestPlugin\\Test\\": "tests/test_app/Plugin/TestPlugin/tests/",
  71. "TestPluginTwo\\": "tests/test_app/Plugin/TestPluginTwo/src/",
  72. "Company\\TestPluginThree\\": "tests/test_app/Plugin/Company/TestPluginThree/src/",
  73. "Company\\TestPluginThree\\Test\\": "tests/test_app/Plugin/Company/TestPluginThree/tests/",
  74. "ParentPlugin\\": "tests/test_app/Plugin/ParentPlugin/src/",
  75. "PluginJs\\": "tests/test_app/Plugin/PluginJs/src/"
  76. }
  77. },
  78. "replace": {
  79. "cakephp/cache": "self.version",
  80. "cakephp/collection": "self.version",
  81. "cakephp/core": "self.version",
  82. "cakephp/datasource": "self.version",
  83. "cakephp/database": "self.version",
  84. "cakephp/event": "self.version",
  85. "cakephp/filesystem": "self.version",
  86. "cakephp/form": "self.version",
  87. "cakephp/i18n": "self.version",
  88. "cakephp/log": "self.version",
  89. "cakephp/orm": "self.version",
  90. "cakephp/utility": "self.version",
  91. "cakephp/validation": "self.version"
  92. },
  93. "conflict": {
  94. "phpunit/phpunit": "<5.7"
  95. },
  96. "scripts": {
  97. "check": [
  98. "@cs-check",
  99. "@test"
  100. ],
  101. "cs-check": "phpcs --colors --parallel=16 -p src/ tests/",
  102. "cs-fix": "phpcbf --colors --parallel=16 -p src/ tests/",
  103. "test": "phpunit",
  104. "test-coverage": "phpunit --coverage-clover=clover.xml",
  105. "phpstan": "phpstan analyse -c phpstan.neon -l 2 src/",
  106. "phpstan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan-shim:^0.11 --no-update && composer update && mv composer.backup composer.json"
  107. }
  108. }