composer.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. "name": "nesbot/carbon",
  3. "type": "library",
  4. "description": "An API extension for DateTime that supports 281 different languages.",
  5. "keywords": [
  6. "date",
  7. "time",
  8. "DateTime"
  9. ],
  10. "homepage": "https://carbon.nesbot.com",
  11. "license": "MIT",
  12. "authors": [
  13. {
  14. "name": "Brian Nesbitt",
  15. "email": "brian@nesbot.com",
  16. "homepage": "https://markido.com"
  17. },
  18. {
  19. "name": "kylekatarnls",
  20. "homepage": "https://github.com/kylekatarnls"
  21. }
  22. ],
  23. "require": {
  24. "php": "^7.1.8 || ^8.0",
  25. "ext-json": "*",
  26. "symfony/polyfill-mbstring": "^1.0",
  27. "symfony/polyfill-php80": "^1.16",
  28. "symfony/translation": "^3.4 || ^4.0 || ^5.0"
  29. },
  30. "require-dev": {
  31. "doctrine/orm": "^2.7",
  32. "friendsofphp/php-cs-fixer": "^3.0",
  33. "kylekatarnls/multi-tester": "^2.0",
  34. "phpmd/phpmd": "^2.9",
  35. "phpstan/extension-installer": "^1.0",
  36. "phpstan/phpstan": "^0.12.54",
  37. "phpunit/phpunit": "^7.5.20 || ^8.5.14",
  38. "squizlabs/php_codesniffer": "^3.4"
  39. },
  40. "config": {
  41. "process-timeout": 0,
  42. "sort-packages": true
  43. },
  44. "extra": {
  45. "branch-alias": {
  46. "dev-3.x": "3.x-dev",
  47. "dev-master": "2.x-dev"
  48. },
  49. "laravel": {
  50. "providers": [
  51. "Carbon\\Laravel\\ServiceProvider"
  52. ]
  53. },
  54. "phpstan": {
  55. "includes": [
  56. "extension.neon"
  57. ]
  58. }
  59. },
  60. "autoload": {
  61. "psr-4": {
  62. "Carbon\\": "src/Carbon/"
  63. }
  64. },
  65. "autoload-dev": {
  66. "psr-4": {
  67. "Tests\\": "tests/"
  68. },
  69. "files": [
  70. "tests/Laravel/ServiceProvider.php"
  71. ]
  72. },
  73. "minimum-stability": "dev",
  74. "prefer-stable": true,
  75. "bin": [
  76. "bin/carbon"
  77. ],
  78. "scripts": {
  79. "phpcs": "php-cs-fixer fix -v --diff --dry-run",
  80. "phpdoc": "php phpdoc.php",
  81. "phpmd": "phpmd src text /phpmd.xml",
  82. "phpstan": "phpstan analyse --configuration phpstan.neon",
  83. "phpunit": "phpunit --verbose",
  84. "style-check": [
  85. "@phpcs",
  86. "@phpstan",
  87. "@phpmd"
  88. ],
  89. "test": [
  90. "@phpunit",
  91. "@style-check"
  92. ]
  93. },
  94. "support": {
  95. "issues": "https://github.com/briannesbitt/Carbon/issues",
  96. "source": "https://github.com/briannesbitt/Carbon"
  97. }
  98. }