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

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

neat/http
=========

Neat HTTP components

0.7.0(1y ago)03.7k[1 issues](https://github.com/neat-php/http/issues)2MITPHPPHP ^7.4 || ^8.0CI failing

Since Aug 19Pushed 1y ago2 watchersCompare

[ Source](https://github.com/neat-php/http)[ Packagist](https://packagist.org/packages/neat/http)[ RSS](/packages/neat-http/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (23)Used By (2)

Neat HTTP components
====================

[](#neat-http-components)

[![Stable Version](https://camo.githubusercontent.com/53a3a4602059ab32eea254c8b9b909a6c22522a6b8f66aecd8d09bf564fa2799/68747470733a2f2f706f7365722e707567782e6f72672f6e6561742f687474702f76657273696f6e)](https://packagist.org/packages/neat/http)[![Build Status](https://camo.githubusercontent.com/7c616fef3fcf530ff7bdc23d850960184ecdcd80af8cd9a1c86bb7a97b87e3b2/68747470733a2f2f7472617669732d63692e6f72672f6e6561742d7068702f687474702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/neat-php/http)

Neat HTTP components provide a clean and expressive API for your application to access HTTP messages.

Requirements
------------

[](#requirements)

To use Neat HTTP components you will need

- PHP 7.0 or newer
- a [PSR-7 HTTP message implementation](https://packagist.org/providers/psr/http-message-implementation)

To send and receive messages, we suggest using the [neat/http-client](https://github.com/neat-php/http-client)and [neat/http-server](https://github.com/neat-php/http-server) packages.

Getting started
---------------

[](#getting-started)

To install this package, simply issue [composer](https://getcomposer.org) on the command line:

```
composer require neat/http

```

Reading the request
-------------------

[](#reading-the-request)

The request can be read using simple methods like shown below.

```
