Tiny HTTP client for exchanging PSR-7 messages, based on PSR-18.

2.0 2020-04-23 07:23 UTC

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)

Build status Code Coverage Latest Version Downloads PHP Version License

SensioLabsInsight

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.