composer.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.3",
  16. "guzzlehttp/guzzle": "^7.2",
  17. "hyperf/cache": "~2.2.0",
  18. "hyperf/command": "~2.2.0",
  19. "hyperf/config": "~2.2.0",
  20. "hyperf/crontab": "^2.2",
  21. "hyperf/database": "~2.2.0",
  22. "hyperf/db-connection": "~2.2.0",
  23. "hyperf/framework": "~2.2.0",
  24. "hyperf/guzzle": "~2.2.0",
  25. "hyperf/http-server": "~2.2.0",
  26. "hyperf/logger": "~2.2.0",
  27. "hyperf/memory": "~2.2.0",
  28. "hyperf/process": "~2.2.0",
  29. "hyperf/redis": "~2.2.0",
  30. "iexbase/tron-api": "^4.0"
  31. },
  32. "require-dev": {
  33. "friendsofphp/php-cs-fixer": "^3.0",
  34. "hyperf/devtool": "~2.2.0",
  35. "hyperf/ide-helper": "~2.2.0",
  36. "hyperf/testing": "~2.2.0",
  37. "mockery/mockery": "^1.0",
  38. "phpstan/phpstan": "^0.12",
  39. "swoole/ide-helper": "^4.5"
  40. },
  41. "suggest": {
  42. "ext-openssl": "Required to use HTTPS.",
  43. "ext-json": "Required to use JSON.",
  44. "ext-pdo": "Required to use MySQL Client.",
  45. "ext-pdo_mysql": "Required to use MySQL Client.",
  46. "ext-redis": "Required to use Redis Client."
  47. },
  48. "autoload": {
  49. "psr-4": {
  50. "App\\": "app/"
  51. },
  52. "files": [
  53. "app/function.php"
  54. ]
  55. },
  56. "autoload-dev": {
  57. "psr-4": {
  58. "HyperfTest\\": "./test/"
  59. }
  60. },
  61. "minimum-stability": "dev",
  62. "prefer-stable": true,
  63. "config": {
  64. "optimize-autoloader": true,
  65. "sort-packages": true
  66. },
  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 --prepend test/bootstrap.php -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": [
  79. "Composer\\Config::disableProcessTimeout",
  80. "php ./bin/hyperf.php start"
  81. ]
  82. }
  83. }