vaibhavpandeyvpz / dakiya
基于PSR-18的PSR-7消息交换的轻量级HTTP客户端。
2.0
2020-04-23 07:23 UTC
Requires
- php: ^7.0
- ext-curl: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- phpunit/phpunit: ^4.0 || ^5.0
- vaibhavpandeyvpz/sandesh: ^2.0
Suggests
Provides
This package is auto-updated.
Last update: 2024-08-23 16:59:26 UTC
README
轻量级 HTTP 客户端,用于交换 PSR-7 消息,基于 PSR-18。
Dakiya:
डाकिया
(Postman)
用法
<?php $client = new Dakiya\Client(new Sandesh\ResponseFactory()); $request = (new Sandesh\RequestFactory())->createRequest('GET', 'https://example.com/'); $response = $client->sendRequest($request); if ($response->getStatusCode() === 200) { // ...do as required }
文档
要查看安装和使用说明,请访问此 Wiki。
许可证
请参阅 LICENSE.md 文件。