composer.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "name": "hyperf/pimple",
  3. "type": "library",
  4. "license": "MIT",
  5. "keywords": [
  6. "php",
  7. "hyperf",
  8. "container",
  9. "psr11"
  10. ],
  11. "description": "Pimple Container",
  12. "autoload": {
  13. "psr-4": {
  14. "Hyperf\\Pimple\\": "src/"
  15. }
  16. },
  17. "autoload-dev": {
  18. "psr-4": {
  19. "HyperfTest\\": "tests"
  20. }
  21. },
  22. "require": {
  23. "php": ">=7.4",
  24. "doctrine/instantiator": "^1.0",
  25. "hyperf/utils": "^2.2|^3.0",
  26. "pimple/pimple": "^3.3"
  27. },
  28. "require-dev": {
  29. "friendsofphp/php-cs-fixer": "^3.0",
  30. "mockery/mockery": "^1.3",
  31. "phpstan/phpstan": "^1.0",
  32. "phpunit/phpunit": ">=7.0"
  33. },
  34. "minimum-stability": "dev",
  35. "prefer-stable": true,
  36. "config": {
  37. "optimize-autoloader": true,
  38. "sort-packages": true
  39. },
  40. "scripts": {
  41. "test": "phpunit -c phpunit.xml --colors=always",
  42. "analyse": "phpstan analyse --memory-limit 300M -l 0 ./src",
  43. "cs-fix": "php-cs-fixer fix $1"
  44. },
  45. "extra": {
  46. "branch-alias": {
  47. "dev-master": "2.0-dev"
  48. },
  49. "hyperf": {
  50. "config": "Hyperf\\Pimple\\ConfigProvider"
  51. }
  52. }
  53. }