composer.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "name": "yurunsoft/guzzle-swoole",
  3. "type": "composer-plugin",
  4. "license": "MIT",
  5. "description": "让 Guzzle 支持 Swoole 协程,可以用于 ElasticSearch、AWS 等 SDK 当中",
  6. "require": {
  7. "php": ">=7.1",
  8. "composer-plugin-api": "^1.0|^2.0",
  9. "yurunsoft/composer-include-files": "^1.0|^2.0",
  10. "yurunsoft/yurun-http": "^4.0",
  11. "guzzlehttp/guzzle": "~6.0|~7.0",
  12. "guzzlehttp/ringphp": "~1.0"
  13. },
  14. "require-dev": {
  15. "swoole/ide-helper": "*",
  16. "composer/composer": "^1.0|^2.0",
  17. "phpunit/phpunit": ">=7"
  18. },
  19. "autoload": {
  20. "psr-4": {
  21. "Yurun\\Util\\Swoole\\Guzzle\\": "src/",
  22. "GuzzleHttp\\": "src/GuzzleHttp/"
  23. }
  24. },
  25. "autoload-dev": {
  26. "psr-4": {
  27. "Yurun\\Util\\Swoole\\Guzzle\\Test\\": "tests/test/"
  28. }
  29. },
  30. "prefer-stable": true,
  31. "extra": {
  32. "class": "Yurun\\Util\\Swoole\\Guzzle\\Plugin\\Plugin",
  33. "include_files": [
  34. "src/load_include.php",
  35. "src/functions.php"
  36. ]
  37. },
  38. "scripts": {
  39. "post-autoload-dump": [
  40. "Yurun\\Util\\Swoole\\Guzzle\\Plugin\\Plugin::dev"
  41. ],
  42. "test": "./tests/run",
  43. "test-guzzle": "./tests/test-guzzle"
  44. }
  45. }