composer.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "name": "hyperf/engine",
  3. "type": "library",
  4. "license": "MIT",
  5. "keywords": [
  6. "php",
  7. "hyperf",
  8. "engine",
  9. "swoole"
  10. ],
  11. "description": "Coroutine engine provided by swoole.",
  12. "autoload": {
  13. "psr-4": {
  14. "Hyperf\\Engine\\": "src/"
  15. },
  16. "files": [
  17. "src/Functions.php"
  18. ]
  19. },
  20. "autoload-dev": {
  21. "psr-4": {
  22. "HyperfTest\\": "tests"
  23. }
  24. },
  25. "require": {
  26. "php": ">=8.0",
  27. "hyperf/engine-contract": "~1.9.0"
  28. },
  29. "require-dev": {
  30. "friendsofphp/php-cs-fixer": "^3.0",
  31. "hyperf/guzzle": "^3.0",
  32. "hyperf/http-message": "^3.0",
  33. "mockery/mockery": "^1.5",
  34. "phpstan/phpstan": "^1.0",
  35. "phpunit/phpunit": "^9.4",
  36. "swoole/ide-helper": "5.*"
  37. },
  38. "suggest": {
  39. "ext-sockets": "*",
  40. "ext-swoole": ">=5.0",
  41. "psr/http-message": "Required to use WebSocket Frame.",
  42. "hyperf/http-message": "Required to use ResponseEmitter."
  43. },
  44. "conflict": {
  45. "ext-swoole": "<5.0"
  46. },
  47. "minimum-stability": "dev",
  48. "prefer-stable": true,
  49. "config": {
  50. "optimize-autoloader": true,
  51. "sort-packages": true
  52. },
  53. "extra": {
  54. "branch-alias": {
  55. "dev-master": "2.10-dev"
  56. },
  57. "hyperf": {
  58. "config": "Hyperf\\Engine\\ConfigProvider"
  59. }
  60. },
  61. "scripts": {
  62. "test": "phpunit -c phpunit.xml --colors=always",
  63. "analyse": "phpstan analyse --memory-limit 1024M -l 0 ./src",
  64. "cs-fix": "php-cs-fixer fix $1"
  65. }
  66. }