composer.json 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {
  2. "name": "hyperf/hyperf-skeleton",
  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": ">=7.2",
  16. "ext-swoole": ">=4.5",
  17. "hyperf/cache": "~2.0.0",
  18. "hyperf/command": "~2.0.0",
  19. "hyperf/config": "~2.0.0",
  20. "hyperf/db-connection": "~2.0.0",
  21. "hyperf/framework": "~2.0.0",
  22. "hyperf/guzzle": "~2.0.0",
  23. "hyperf/http-server": "~2.0.0",
  24. "hyperf/logger": "~2.0.0",
  25. "hyperf/memory": "~2.0.0",
  26. "hyperf/process": "~2.0.0",
  27. "hyperf/redis": "~2.0.0",
  28. "hyperf/database": "~2.0.0",
  29. "hyperf/json-rpc": "~2.0.0",
  30. "hyperf/rpc": "~2.0.0",
  31. "hyperf/rpc-client": "~2.0.0",
  32. "hyperf/rpc-server": "~2.0.0",
  33. "hyperf/config-apollo": "~2.0.0",
  34. "hyperf/constants": "~2.0.0",
  35. "hyperf/async-queue": "~2.0.0",
  36. "hyperf/model-cache": "~2.0.0",
  37. "hyperf/tracer": "~2.0.0",
  38. "phper666/hyperf-server-command": "~1.0.0",
  39. "hyperf/resource": "^2.0",
  40. "hyperf/translation": "^2.0",
  41. "phper666/jwt-auth": "^3.0",
  42. "easyswoole/verifycode": "3.x"
  43. },
  44. "require-dev": {
  45. "swoole/ide-helper": "^4.5",
  46. "friendsofphp/php-cs-fixer": "^2.14",
  47. "mockery/mockery": "^1.0",
  48. "phpstan/phpstan": "^0.12",
  49. "hyperf/devtool": "~2.0.0",
  50. "hyperf/testing": "~2.0.0"
  51. },
  52. "suggest": {
  53. "ext-openssl": "Required to use HTTPS.",
  54. "ext-json": "Required to use JSON.",
  55. "ext-pdo": "Required to use MySQL Client.",
  56. "ext-pdo_mysql": "Required to use MySQL Client.",
  57. "ext-redis": "Required to use Redis Client."
  58. },
  59. "autoload": {
  60. "psr-4": {
  61. "App\\": "app/"
  62. },
  63. "files": []
  64. },
  65. "autoload-dev": {
  66. "psr-4": {
  67. "HyperfTest\\": "./test/"
  68. }
  69. },
  70. "minimum-stability": "dev",
  71. "prefer-stable": true,
  72. "extra": [],
  73. "scripts": {
  74. "watch": [
  75. "Composer\\Config::disableProcessTimeout",
  76. "./vendor/bin/watch"
  77. ],
  78. "post-root-package-install": [
  79. "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
  80. ],
  81. "post-autoload-dump": [
  82. "rm -rf runtime/container"
  83. ],
  84. "test": "co-phpunit -c phpunit.xml --colors=always",
  85. "cs-fix": "php-cs-fixer fix $1",
  86. "analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config",
  87. "start": "php ./bin/hyperf.php start"
  88. },
  89. "repositories": {
  90. "packagist": {
  91. "type": "composer",
  92. "url": "https://mirrors.aliyun.com/composer/"
  93. }
  94. }
  95. }