composer.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. "require": {
  29. "php": "^7.1.8 || ^8.0",
  30. "ext-json": "*",
  31. "symfony/polyfill-mbstring": "^1.0",
  32. "symfony/polyfill-php80": "^1.16",
  33. "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0"
  34. },
  35. "require-dev": {
  36. "doctrine/dbal": "^2.0 || ^3.0",
  37. "doctrine/orm": "^2.7",
  38. "friendsofphp/php-cs-fixer": "^3.0",
  39. "kylekatarnls/multi-tester": "^2.0",
  40. "phpmd/phpmd": "^2.9",
  41. "phpstan/extension-installer": "^1.0",
  42. "phpstan/phpstan": "^0.12.54 || ^1.0",
  43. "phpunit/php-file-iterator": "^2.0.5",
  44. "phpunit/phpunit": "^7.5.20 || ^8.5.23",
  45. "squizlabs/php_codesniffer": "^3.4"
  46. },
  47. "minimum-stability": "dev",
  48. "prefer-stable": true,
  49. "autoload": {
  50. "psr-4": {
  51. "Carbon\\": "src/Carbon/"
  52. }
  53. },
  54. "autoload-dev": {
  55. "psr-4": {
  56. "Tests\\": "tests/"
  57. },
  58. "files": [
  59. "tests/Laravel/ServiceProvider.php"
  60. ]
  61. },
  62. "bin": [
  63. "bin/carbon"
  64. ],
  65. "config": {
  66. "allow-plugins": {
  67. "phpstan/extension-installer": true,
  68. "composer/package-versions-deprecated": true
  69. },
  70. "process-timeout": 0,
  71. "sort-packages": true
  72. },
  73. "extra": {
  74. "branch-alias": {
  75. "dev-3.x": "3.x-dev",
  76. "dev-master": "2.x-dev"
  77. },
  78. "laravel": {
  79. "providers": [
  80. "Carbon\\Laravel\\ServiceProvider"
  81. ]
  82. },
  83. "phpstan": {
  84. "includes": [
  85. "extension.neon"
  86. ]
  87. }
  88. },
  89. "scripts": {
  90. "phpcs": "php-cs-fixer fix -v --diff --dry-run",
  91. "phpdoc": "php phpdoc.php",
  92. "phpmd": "phpmd src text /phpmd.xml",
  93. "phpstan": "phpstan analyse --configuration phpstan.neon",
  94. "phpunit": "phpunit --verbose",
  95. "style-check": [
  96. "@phpcs",
  97. "@phpstan",
  98. "@phpmd"
  99. ],
  100. "test": [
  101. "@phpunit",
  102. "@style-check"
  103. ]
  104. }
  105. }