composer.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. "symfony/console": "^2.8",
  23. "php": ">=5.4.5",
  24. "consolidation/output-formatters": "^3.4",
  25. "psr/log": "^1",
  26. "symfony/event-dispatcher": "^2.5|^3|^4",
  27. "symfony/finder": "^2.5|^3|^4"
  28. },
  29. "require-dev": {
  30. "phpunit/phpunit": "^4.8.36",
  31. "g1a/composer-test-scenarios": "^3",
  32. "squizlabs/php_codesniffer": "^2.7"
  33. },
  34. "config": {
  35. "platform": {
  36. "php": "5.4.8"
  37. },
  38. "optimize-autoloader": true,
  39. "sort-packages": true,
  40. "vendor-dir": "../../vendor"
  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. "branch-alias": {
  58. "dev-master": "2.x-dev"
  59. }
  60. }
  61. }