PHPackages                             simukti/rest-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. simukti/rest-client

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

simukti/rest-client
===================

A practical PHP 7 REST API client on-top-of pecl-http.

1.1.2(8y ago)047MITPHPPHP &gt;=7.0.0

Since Sep 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/simukti/rest-client)[ Packagist](https://packagist.org/packages/simukti/rest-client)[ RSS](/packages/simukti-rest-client/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

README
------

[](#readme)

A practical PHP 7 REST API client on-top-of [pecl-http](https://pecl.php.net/package/pecl_http).

FEATURES
--------

[](#features)

- Include authorization header generator (basic, bearer, jwt) with optional custom prefix value
- Auto json body based on request content-type
- Configurable http client and request options (based on pecl-http options)
- Built-in pipelined request support (pecl-http feature)
- Client/server error check by response status code
- Default request accept-encoding is `gzip, deflate` and auto inflate if server response is gziped or deflated

REQUIREMENTS
------------

[](#requirements)

- [php &gt;=7.0.0](https://secure.php.net/)
- [pecl-http &gt;=3.0.0](https://pecl.php.net/package/pecl_http)
- [mbstring](http://php.net/manual/en/book.mbstring.php)

INSTALL
-------

[](#install)

Add `simukti/rest-client` to your composer.json

```
    "require": {
        "simukti/rest-client": "^1.1.0"
    }

```

OR add require latest version via inline composer command

```
composer require simukti/rest-client -vvv -o

```

REQUEST
-------

[](#request)

### GET

[](#get)

```
