You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.5 KiB

3 years ago
  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. "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": "https://markido.com"
  21. },
  22. {
  23. "name": "kylekatarnls",
  24. "homepage": "https://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.54",
  43. "phpunit/phpunit": "^7.5.20 || ^8.5.14",
  44. "squizlabs/php_codesniffer": "^3.4"
  45. },
  46. "autoload": {
  47. "psr-4": {
  48. "Carbon\\": "src/Carbon/"
  49. }
  50. },
  51. "autoload-dev": {
  52. "files": [
  53. "tests/Laravel/ServiceProvider.php"
  54. ],
  55. "psr-4": {
  56. "Tests\\": "tests/"
  57. }
  58. },
  59. "config": {
  60. "process-timeout": 0,
  61. "sort-packages": true
  62. },
  63. "scripts": {
  64. "test": [
  65. "@phpunit",
  66. "@style-check"
  67. ],
  68. "style-check": [
  69. "@phpcs",
  70. "@phpstan",
  71. "@phpmd"
  72. ],
  73. "phpunit": "phpunit --verbose",
  74. "phpcs": "php-cs-fixer fix -v --diff --dry-run",
  75. "phpstan": "phpstan analyse --configuration phpstan.neon",
  76. "phpmd": "phpmd src text /phpmd.xml",
  77. "phpdoc": "php phpdoc.php"
  78. },
  79. "extra": {
  80. "branch-alias": {
  81. "dev-master": "2.x-dev",
  82. "dev-3.x": "3.x-dev"
  83. },
  84. "laravel": {
  85. "providers": [
  86. "Carbon\\Laravel\\ServiceProvider"
  87. ]
  88. },
  89. "phpstan": {
  90. "includes": [
  91. "extension.neon"
  92. ]
  93. }
  94. }
  95. }