vaibhavpandeyvpz / dakiya
Tiny HTTP client for exchanging PSR-7 messages, based on PSR-18.
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-11-23 17:27:37 UTC
README
Tiny HTTP client for exchanging PSR-7 messages, based on PSR-18.
Dakiya:
डाकिया
(Postman)
Usage
<?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 }
Documentation
To view installation and usage instructions, visit this Wiki.
License
See LICENSE.md file.