composer.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. "symfony/polyfill-mbstring": "^1.0",
  46. "symfony/polyfill-php80": "^1.16",
  47. "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0"
  48. },
  49. "require-dev": {
  50. "doctrine/dbal": "^2.0 || ^3.1.4",
  51. "doctrine/orm": "^2.7",
  52. "friendsofphp/php-cs-fixer": "^3.0",
  53. "kylekatarnls/multi-tester": "^2.0",
  54. "ondrejmirtes/better-reflection": "*",
  55. "phpmd/phpmd": "^2.9",
  56. "phpstan/extension-installer": "^1.0",
  57. "phpstan/phpstan": "^0.12.99 || ^1.7.14",
  58. "phpunit/php-file-iterator": "^2.0.5 || ^3.0.6",
  59. "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20",
  60. "squizlabs/php_codesniffer": "^3.4"
  61. },
  62. "minimum-stability": "dev",
  63. "prefer-stable": true,
  64. "autoload": {
  65. "psr-4": {
  66. "Carbon\\": "src/Carbon/"
  67. }
  68. },
  69. "autoload-dev": {
  70. "psr-4": {
  71. "Tests\\": "tests/"
  72. },
  73. "files": [
  74. "tests/Laravel/ServiceProvider.php"
  75. ]
  76. },
  77. "bin": [
  78. "bin/carbon"
  79. ],
  80. "config": {
  81. "allow-plugins": {
  82. "phpstan/extension-installer": true,
  83. "composer/package-versions-deprecated": true
  84. },
  85. "process-timeout": 0,
  86. "sort-packages": true
  87. },
  88. "extra": {
  89. "branch-alias": {
  90. "dev-3.x": "3.x-dev",
  91. "dev-master": "2.x-dev"
  92. },
  93. "laravel": {
  94. "providers": [
  95. "Carbon\\Laravel\\ServiceProvider"
  96. ]
  97. },
  98. "phpstan": {
  99. "includes": [
  100. "extension.neon"
  101. ]
  102. }
  103. },
  104. "scripts": {
  105. "phpcs": "php-cs-fixer fix -v --diff --dry-run",
  106. "phpdoc": "php phpdoc.php",
  107. "phpmd": "phpmd src text /phpmd.xml",
  108. "phpstan": "phpstan analyse --configuration phpstan.neon",
  109. "phpunit": "phpunit --verbose",
  110. "style-check": [
  111. "@phpcs",
  112. "@phpstan",
  113. "@phpmd"
  114. ],
  115. "test": [
  116. "@phpunit",
  117. "@style-check"
  118. ]
  119. }
  120. }