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.

79 lines
2.4 KiB

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