An open API service indexing awesome lists of open source software.

https://github.com/dspacelabs/http-client

Simple PHP HTTP Client
https://github.com/dspacelabs/http-client

curl http-client php-client

Last synced: about 1 month ago
JSON representation

Simple PHP HTTP Client

Awesome Lists containing this project

README

        

dspacelabs/http-client
======================

Simple HTTP Client used for PHP and making web requests.

## Installation

```bash
composer require dspacelabs/http-client
```

## Examples

### Making a Web Request

```php
use Dspacelabs\Component\Http\Client\Client;

$client = new Client();

// @var \Psr\Http\Message\Request $request
// @var \Psr\Http\Message\Response $response
$response = $client->sendWithRequest($request);
```