composer.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {
  2. "name": "nesbot/carbon",
  3. "description": "An API extension for DateTime that supports 281 different languages.",
  4. "license": "MIT",
  5. "type": "library",
  6. "keywords": [
  7. "date",
  8. "time",
  9. "DateTime"
  10. ],
  11. "authors": [
  12. {
  13. "name": "Brian Nesbitt",
  14. "email": "brian@nesbot.com",
  15. "homepage": "https://markido.com"
  16. },
  17. {
  18. "name": "kylekatarnls",
  19. "homepage": "https://github.com/kylekatarnls"
  20. }
  21. ],
  22. "homepage": "https://carbon.nesbot.com",
  23. "support": {
  24. "issues": "https://github.com/briannesbitt/Carbon/issues",
  25. "source": "https://github.com/briannesbitt/Carbon",
  26. "docs": "https://carbon.nesbot.com/docs"
  27. },
  28. "funding": [
  29. {
  30. "url": "https://github.com/sponsors/kylekatarnls",
  31. "type": "github"
  32. },
  33. {
  34. "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme",
  35. "type": "tidelift"
  36. },
  37. {
  38. "url": "https://opencollective.com/Carbon#sponsor",
  39. "type": "opencollective"
  40. }
  41. ],
  42. "require": {
  43. "php": "^7.1.8 || ^8.0",
  44. "ext-json": "*",
  45. "carbonphp/carbon-doctrine-types": "*",
  46. "psr/clock": "^1.0",
  47. "symfony/polyfill-mbstring": "^1.0",
  48. "symfony/polyfill-php80": "^1.16",
  49. "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0"
  50. },
  51. "require-dev": {
  52. "doctrine/dbal": "^2.0 || ^3.1.4 || ^4.0",
  53. "doctrine/orm": "^2.7 || ^3.0",
  54. "friendsofphp/php-cs-fixer": "^3.0",
  55. "kylekatarnls/multi-tester": "^2.0",
  56. "ondrejmirtes/better-reflection": "*",
  57. "phpmd/phpmd": "^2.9",
  58. "phpstan/extension-installer": "^1.0",
  59. "phpstan/phpstan": "^0.12.99 || ^1.7.14",
  60. "phpunit/php-file-iterator": "^2.0.5 || ^3.0.6",
  61. "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20",
  62. "squizlabs/php_codesniffer": "^3.4"
  63. },
  64. "provide": {
  65. "psr/clock-implementation": "1.0"
  66. },
  67. "minimum-stability": "dev",
  68. "prefer-stable": true,
  69. "autoload": {
  70. "psr-4": {
  71. "Carbon\\": "src/Carbon/"
  72. }
  73. },
  74. "autoload-dev": {
  75. "psr-4": {
  76. "Tests\\": "tests/"
  77. },
  78. "files": [
  79. "tests/Laravel/ServiceProvider.php"
  80. ]
  81. },
  82. "bin": [
  83. "bin/carbon"
  84. ],
  85. "config": {
  86. "allow-plugins": {
  87. "phpstan/extension-installer": true,
  88. "composer/package-versions-deprecated": true
  89. },
  90. "process-timeout": 0,
  91. "sort-packages": true
  92. },
  93. "extra": {
  94. "branch-alias": {
  95. "dev-3.x": "3.x-dev",
  96. "dev-master": "2.x-dev"
  97. },
  98. "laravel": {
  99. "providers": [
  100. "Carbon\\Laravel\\ServiceProvider"
  101. ]
  102. },
  103. "phpstan": {
  104. "includes": [
  105. "extension.neon"
  106. ]
  107. }
  108. },
  109. "scripts": {
  110. "phpcs": "php-cs-fixer fix -v --diff --dry-run",
  111. "phpdoc": "php phpdoc.php",
  112. "phpmd": "phpmd src text /phpmd.xml",
  113. "phpmd-test": "phpmd tests text /tests/phpmd-test.xml",
  114. "phpstan": "phpstan analyse --configuration phpstan.neon",
  115. "phpunit": "phpunit --verbose",
  116. "style-check": [
  117. "@phpcs",
  118. "@phpstan",
  119. "@phpmd"
  120. ],
  121. "test": [
  122. "@phpunit",
  123. "@style-check"
  124. ],
  125. "sponsors": "php sponsors.php"
  126. }
  127. }