PHPackages                             rexlabs/hyper-http - 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. rexlabs/hyper-http

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

rexlabs/hyper-http
==================

HTTP client for PHP

4.0.0(2y ago)492.6k↓11.3%MITPHPPHP &gt;=7.4 &lt;8.3

Since Feb 28Pushed 2y ago3 watchersCompare

[ Source](https://github.com/rexlabsio/hyper-http-php)[ Packagist](https://packagist.org/packages/rexlabs/hyper-http)[ RSS](/packages/rexlabs-hyper-http/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (15)Used By (0)

Deprecated
==========

[](#deprecated)

This library isn't in active development.

Please consider [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) or another library instead.

Bug fixes only.

Hyper Http Client
=================

[](#hyper-http-client)

[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![Packagist](https://camo.githubusercontent.com/d91545a961cb16565c90d5c360b50414dba2f8fb9458962abe7c9a0d5f8f4661/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7265786c6162732f68797065722d687474702e737667)](https://packagist.org/packages/rexlabs/hyper-http)

Overview
--------

[](#overview)

Hyper is an HTTP Client that aims to provide a simple, but powerful interface for making HTTP calls and fetching and manipulating API data.

Why use Hyper
-------------

[](#why-use-hyper)

- Extremely simple interface `Hyper::get('http://some/url')`.
- Also supports object style `Hyper::make(...)->get('http://some/url')`.
- Provides a `Response` object which provides useful information like HTTP status code, body and headers.
- Every `Response` mixes in [rexlabs\\array-object](https://packagist.org/packages/rexlabs/array-object) which allows you to easily interrogate API responses.
- Throws a limited set of exceptions (with access to the request and/or response) when things go wrong.
- You have access to the original `Request` via `$response->getRequest()`.
- Supports all of [Guzzle client](https://packagist.org/packages/guzzlehttp/guzzle) functionality including streams.
- Allows you to dump cURL requests for reproducing from the command-line.
- Easily log all requests

Usage
-----

[](#usage)

```
