PHPackages                             larium/http-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. larium/http-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

larium/http-client
==================

An http client implemention compatible with psr-7 http message.

2.0.4(1y ago)19911MITPHPPHP &gt;=8.1

Since Sep 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Larium/http-client)[ Packagist](https://packagist.org/packages/larium/http-client)[ RSS](/packages/larium-http-client/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (6)Versions (11)Used By (1)

PSR-7 PHP Http Client
=====================

[](#psr-7-php-http-client)

An http client wrapping curl php extension, compatible with [PSR-7](http://www.php-fig.org/psr/psr-7/) Http Message interfaces.

- [Installation](#installation)
    - [Composer from command line](#composer-from-command-line)
    - [Composer from composer.json](#composer-from-composer.json)
- [Set Up](#set-up)
- [Basic Usage](#basic-usage)
    - [Using message factory discovery](#using-message-factory-discovery)

Installation
------------

[](#installation)

You can install this library using [Composer](https://getcomposer.org)

### Composer from command line

[](#composer-from-command-line)

In root directory of your project run through a console:

```
$ composer require "larium/http-client":"~1.0"
```

### Composer from composer.json

[](#composer-from-composerjson)

Include require line in your `composer.json` file

```
{
	"require": {
    	"larium/http-client": "~1.0"
    }
}
```

and run from console in the root directory of your project:

```
$ composer update
```

Set up
------

[](#set-up)

After installation you must require autoload file from composer in to your boot php script.

```
