nopolabs / react-aware-guzzle-client
一个实现了 GuzzleHttp\Handler\CurlFactoryInterface 并与 React 兼容的版本
dev-master
2019-07-12 18:34 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.2
- psr/log: ^1.0
- react/event-loop: ^0.4.1
Requires (Dev)
- nopolabs/mock-with-expectations: ^1.0
- phpstan/phpstan: ^0.9.2
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-09-13 05:59:34 UTC
README
一个实现了 GuzzleHttp\Handler\CurlFactoryInterface 并与 React 兼容的版本。
public function newClient( LoopInterface $eventLoop, array $config = [], CurlFactory $curlFactory = null, LoggerInterface $logger = null) : Client { $clientFactory = new ReactAwareGuzzleClientFactory(); return $clientFactory->createGuzzleClient($eventLoop, $config, $curlFactory, $logger); }