composer.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "name": "nesbot/carbon",
  3. "type": "library",
  4. "description": "A simple API extension for DateTime.",
  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. "bin": ["bin/upgrade-carbon"],
  24. "require": {
  25. "php": ">=5.3.9",
  26. "kylekatarnls/update-helper": "^1.1",
  27. "symfony/translation": "~2.6 || ~3.0 || ~4.0"
  28. },
  29. "require-dev": {
  30. "composer/composer": "^1.2",
  31. "friendsofphp/php-cs-fixer": "~2",
  32. "phpunit/phpunit": "^4.8.35 || ^5.7"
  33. },
  34. "autoload": {
  35. "psr-4": {
  36. "": "src/"
  37. }
  38. },
  39. "autoload-dev": {
  40. "psr-4": {
  41. "Tests\\": "tests/"
  42. }
  43. },
  44. "config": {
  45. "sort-packages": true
  46. },
  47. "scripts": {
  48. "test": [
  49. "@phpunit",
  50. "@phpcs"
  51. ],
  52. "phpunit": "phpunit --verbose --coverage-clover=coverage.xml",
  53. "phpcs": "php-cs-fixer fix -v --diff --dry-run",
  54. "phpstan": "phpstan analyse --configuration phpstan.neon --level 3 src tests",
  55. "post-autoload-dump": [
  56. "UpdateHelper\\UpdateHelper::check"
  57. ],
  58. "upgrade-carbon": [
  59. "Carbon\\Upgrade::upgrade"
  60. ]
  61. },
  62. "extra": {
  63. "update-helper": "Carbon\\Upgrade",
  64. "laravel": {
  65. "providers": [
  66. "Carbon\\Laravel\\ServiceProvider"
  67. ]
  68. }
  69. }
  70. }