composer.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "name": "consolidation/annotated-command",
  3. "description": "Initialize Symfony Console commands from annotated command class methods.",
  4. "license": "MIT",
  5. "authors": [
  6. {
  7. "name": "Greg Anderson",
  8. "email": "greg.1.anderson@greenknowe.org"
  9. }
  10. ],
  11. "autoload":{
  12. "psr-4":{
  13. "Consolidation\\AnnotatedCommand\\": "src"
  14. }
  15. },
  16. "autoload-dev": {
  17. "psr-4": {
  18. "Consolidation\\TestUtils\\": "tests/src"
  19. }
  20. },
  21. "require": {
  22. "php": ">=7.1.3",
  23. "consolidation/output-formatters": "^4.1",
  24. "psr/log": "^1|^2",
  25. "symfony/console": "^4|^5",
  26. "symfony/event-dispatcher": "^4|^5",
  27. "symfony/finder": "^4|^5"
  28. },
  29. "require-dev": {
  30. "g1a/composer-test-scenarios": "^3",
  31. "php-coveralls/php-coveralls": "^1",
  32. "phpunit/phpunit": "^6",
  33. "squizlabs/php_codesniffer": "^3"
  34. },
  35. "config": {
  36. "optimize-autoloader": true,
  37. "sort-packages": true,
  38. "platform": {
  39. "php": "7.1.3"
  40. }
  41. },
  42. "scripts": {
  43. "cs": "phpcs --standard=PSR2 -n src",
  44. "cbf": "phpcbf --standard=PSR2 -n src",
  45. "unit": "SHELL_INTERACTIVE=true phpunit --colors=always",
  46. "lint": [
  47. "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
  48. "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
  49. ],
  50. "test": [
  51. "@lint",
  52. "@unit",
  53. "@cs"
  54. ]
  55. },
  56. "extra": {
  57. "scenarios": {
  58. "symfony4": {
  59. "require": {
  60. "symfony/console": "^4.0"
  61. }
  62. }
  63. },
  64. "branch-alias": {
  65. "dev-master": "4.x-dev"
  66. }
  67. }
  68. }