composer.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "name": "sanguo-php/hyperf-skeleton-v2.2",
  3. "type": "project",
  4. "keywords": [
  5. "php",
  6. "swoole",
  7. "framework",
  8. "hyperf",
  9. "microservice",
  10. "middleware"
  11. ],
  12. "description": "A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.",
  13. "license": "Apache-2.0",
  14. "require": {
  15. "php": ">=8.0",
  16. "hashids/hashids": "^4.1",
  17. "hyperf/amqp": "~2.2.0",
  18. "hyperf/async-queue": "~2.2.0",
  19. "hyperf/cache": "~2.2.0",
  20. "hyperf/command": "~2.2.0",
  21. "hyperf/config": "~2.2.0",
  22. "hyperf/config-apollo": "~2.2.0",
  23. "hyperf/constants": "~2.2.0",
  24. "hyperf/crontab": "~2.2.0",
  25. "hyperf/database": "~2.2.0",
  26. "hyperf/db-connection": "~2.2.0",
  27. "hyperf/elasticsearch": "~2.2.0",
  28. "hyperf/framework": "~2.2.0",
  29. "hyperf/guzzle": "~2.2.0",
  30. "hyperf/http-server": "~2.2.0",
  31. "hyperf/json-rpc": "~2.2.0",
  32. "hyperf/logger": "~2.2.0",
  33. "hyperf/memory": "~2.2.0",
  34. "hyperf/model-cache": "~2.2.0",
  35. "hyperf/paginator": "^2.2",
  36. "hyperf/process": "~2.2.0",
  37. "hyperf/redis": "~2.2.0",
  38. "hyperf/rpc": "~2.2.0",
  39. "hyperf/rpc-client": "~2.2.0",
  40. "hyperf/rpc-server": "~2.2.0",
  41. "hyperf/service-governance": "~2.2.0",
  42. "hyperf/translation": "^2.2",
  43. "hyperf/validation": "^2.2",
  44. "jt9ge/hyperf-telegram-bot-sdk": "~2.2.0",
  45. "lcobucci/jwt": "4.1.5",
  46. "lmz/hyperf-mongodb": "2.2.1",
  47. "zhuzhichao/ip-location-zh": "^2.4"
  48. },
  49. "require-dev": {
  50. "friendsofphp/php-cs-fixer": "^3.0",
  51. "hyperf/devtool": "~2.2.0",
  52. "hyperf/testing": "~2.2.0",
  53. "hyperf/watcher": "^2.2",
  54. "hyperf/ide-helper": "^2.2",
  55. "mockery/mockery": "^1.0",
  56. "phpstan/phpstan": "^0.12",
  57. "swoole/ide-helper": "^4.5"
  58. },
  59. "suggest": {
  60. "ext-openssl": "Required to use HTTPS.",
  61. "ext-json": "Required to use JSON.",
  62. "ext-pdo": "Required to use MySQL Client.",
  63. "ext-pdo_mysql": "Required to use MySQL Client.",
  64. "ext-redis": "Required to use Redis Client."
  65. },
  66. "autoload": {
  67. "psr-4": {
  68. "App\\": "app/",
  69. "Modules\\": "Modules/",
  70. "KZ2\\Hyperf\\CachePlus\\": "private_vendor/kz2/cacheplus/src",
  71. "KZ2\\Repositories\\": "private_vendor/kz2/repositories/src"
  72. },
  73. "files": [
  74. "app/Helpers/autoload.func.php"
  75. ]
  76. },
  77. "autoload-dev": {
  78. "psr-4": {
  79. "HyperfTest\\": "./test/"
  80. }
  81. },
  82. "minimum-stability": "dev",
  83. "prefer-stable": true,
  84. "config": {
  85. "optimize-autoloader": true,
  86. "sort-packages": true
  87. },
  88. "extra": [],
  89. "scripts": {
  90. "post-root-package-install": [
  91. "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
  92. ],
  93. "post-autoload-dump": [
  94. "rm -rf runtime/container"
  95. ],
  96. "test": "co-phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always",
  97. "cs-fix": "php-cs-fixer fix $1",
  98. "analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config",
  99. "start": [
  100. "Composer\\Config::disableProcessTimeout",
  101. "php ./bin/hyperf.php start"
  102. ]
  103. }
  104. }