composer.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. "phpunit/phpunit": "^4.8.35 || ^5.7"
  29. },
  30. "suggest": {
  31. "friendsofphp/php-cs-fixer": "Needed for the `composer phpcs` command. Allow to automatically fix code style.",
  32. "phpstan/phpstan": "Needed for the `composer phpstan` command. Allow to detect potential errors."
  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. },
  56. "extra": {
  57. "laravel": {
  58. "providers": [
  59. "Carbon\\Laravel\\ServiceProvider"
  60. ]
  61. }
  62. }
  63. }