composer.json 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. "require": {
  24. "php": ">=5.3.9",
  25. "symfony/translation": "~2.6 || ~3.0 || ~4.0"
  26. },
  27. "require-dev": {
  28. "friendsofphp/php-cs-fixer": "~2",
  29. "phpunit/phpunit": "^4.8.35 || ^5.7"
  30. },
  31. "autoload": {
  32. "psr-4": {
  33. "": "src/"
  34. }
  35. },
  36. "autoload-dev": {
  37. "psr-4": {
  38. "Tests\\": "tests/"
  39. }
  40. },
  41. "config": {
  42. "sort-packages": true
  43. },
  44. "scripts": {
  45. "test": [
  46. "@phpunit",
  47. "@phpcs"
  48. ],
  49. "phpunit": "phpunit --verbose --coverage-clover=coverage.xml",
  50. "phpcs": "php-cs-fixer fix -v --diff --dry-run",
  51. "phpstan": "phpstan analyse --configuration phpstan.neon --level 3 src tests"
  52. }
  53. }