composer.json 2.4 KB

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