composer.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "name": "consolidation/log",
  3. "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.",
  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\\Log\\": "src"
  14. }
  15. },
  16. "autoload-dev": {
  17. "psr-4": {
  18. "Consolidation\\TestUtils\\": "tests/src"
  19. }
  20. },
  21. "require": {
  22. "php": ">=7.1.3",
  23. "psr/log": "^1.0",
  24. "symfony/console": "^4|^5"
  25. },
  26. "require-dev": {
  27. "g1a/composer-test-scenarios": "^3",
  28. "php-coveralls/php-coveralls": "^2.2",
  29. "phpunit/phpunit": "^6",
  30. "squizlabs/php_codesniffer": "^3"
  31. },
  32. "minimum-stability": "stable",
  33. "scripts": {
  34. "cs": "phpcs -n --standard=PSR2 src",
  35. "cbf": "phpcbf -n --standard=PSR2 src",
  36. "unit": "phpunit --colors=always",
  37. "lint": [
  38. "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
  39. "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
  40. ],
  41. "test": [
  42. "@lint",
  43. "@unit",
  44. "@cs"
  45. ]
  46. },
  47. "extra": {
  48. "scenarios": {
  49. "symfony4": {
  50. "require-dev": {
  51. "symfony/console": "^4"
  52. },
  53. "config": {
  54. "platform": {
  55. "php": "7.1.3"
  56. }
  57. }
  58. }
  59. },
  60. "branch-alias": {
  61. "dev-master": "2.x-dev"
  62. }
  63. },
  64. "config": {
  65. "optimize-autoloader": true,
  66. "sort-packages": true,
  67. "platform": {
  68. "php": "7.2.28"
  69. }
  70. }
  71. }