You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.5 KiB

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