composer.json 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. },
  39. "require-dev": {
  40. "swoole/ide-helper": "^4.5",
  41. "friendsofphp/php-cs-fixer": "^2.14",
  42. "mockery/mockery": "^1.0",
  43. "phpstan/phpstan": "^0.12",
  44. "hyperf/devtool": "~2.0.0",
  45. "hyperf/testing": "~2.0.0"
  46. },
  47. "suggest": {
  48. "ext-openssl": "Required to use HTTPS.",
  49. "ext-json": "Required to use JSON.",
  50. "ext-pdo": "Required to use MySQL Client.",
  51. "ext-pdo_mysql": "Required to use MySQL Client.",
  52. "ext-redis": "Required to use Redis Client."
  53. },
  54. "autoload": {
  55. "psr-4": {
  56. "App\\": "app/"
  57. },
  58. "files": []
  59. },
  60. "autoload-dev": {
  61. "psr-4": {
  62. "HyperfTest\\": "./test/"
  63. }
  64. },
  65. "minimum-stability": "dev",
  66. "prefer-stable": true,
  67. "extra": [],
  68. "scripts": {
  69. "post-root-package-install": [
  70. "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
  71. ],
  72. "post-autoload-dump": [
  73. "rm -rf runtime/container"
  74. ],
  75. "test": "co-phpunit -c phpunit.xml --colors=always",
  76. "cs-fix": "php-cs-fixer fix $1",
  77. "analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config",
  78. "start": "php ./bin/hyperf.php start"
  79. },
  80. "repositories": {
  81. "packagist": {
  82. "type": "composer",
  83. "url": "https://mirrors.aliyun.com/composer/"
  84. }
  85. }
  86. }