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

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

aurora/http-codec
=================

Decode raw request message and encode raw response message

06PHP

Since Feb 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/aurorahttp/http-codec)[ Packagist](https://packagist.org/packages/aurora/http-codec)[ RSS](/packages/aurora-http-codec/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

HTTP Codec
==========

[](#http-codec)

[![Build Status](https://camo.githubusercontent.com/a5b076b23b2475c18fc10cd08b4bc5dd373abfa2c9ad55df641a28d4ff8febd0/68747470733a2f2f7472617669732d63692e6f72672f6175726f7261687474702f687474702d636f6465632e737667)](https://travis-ci.org/aurorahttp/http-codec)[![Coverage Status](https://camo.githubusercontent.com/85546c1e11d4273ba08a6dcb5cc10a80e8ccf4e2cb557a17fc898a0691e51fe9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6175726f7261687474702f687474702d636f6465632f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/aurorahttp/http-codec?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/84556b45bf39908228578c65659851f317fe920edfae4d17499a93689ce583eb/68747470733a2f2f706f7365722e707567782e6f72672f6175726f72612f687474702d636f6465632f762f737461626c652e737667)](https://packagist.org/packages/aurora/http-codec)[![Total Downloads](https://camo.githubusercontent.com/1ff9b62792c72e423f7546f87f2c71d29ab5f415825850b44311f0d6a912d6f5/68747470733a2f2f706f7365722e707567782e6f72672f6175726f72612f687474702d636f6465632f646f776e6c6f6164732e737667)](https://packagist.org/packages/aurora/http-codec)[![Latest Unstable Version](https://camo.githubusercontent.com/db6038c4379b70d0c0f17c02ba5302e180ce0ae0e365a37fbd83ce1222e1d334/68747470733a2f2f706f7365722e707567782e6f72672f6175726f72612f687474702d636f6465632f762f756e737461626c652e737667)](https://packagist.org/packages/aurora/http-codec)[![License](https://camo.githubusercontent.com/790ff26e9a22778d60b1053025a44f4155af0e0caa8e542232079124cd1cdc75/68747470733a2f2f706f7365722e707567782e6f72672f6175726f72612f687474702d636f6465632f6c6963656e73652e737667)](https://packagist.org/packages/aurora/http-codec)[![Aurora Http](https://camo.githubusercontent.com/e2c77fe5756df42d545d214e083bb32824a7fbe3befde95b2ae91797ef1316d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d4175726f72615f487474702d677265656e2e7376673f7374796c653d666c6174)](https://aurorahttp.com/)

Decode raw request message and encode PRS-7 response object.

> ! The HTTP 2.0 part is under development and not yet supported.

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

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install this library.

```
$ composer require aurora/http-codec
```

This will install the library and all required dependencies. The library requires PHP 7.0 or newer.

Usage
-----

[](#usage)

Decode raw Http message content to a request object:

```
$stream = new Aurora\Http\Decoder\Stream();
$stream = $stream->write($rawHttpMessage);

$decoder = new Aurora\Http\Decoder\Decoder();
$serverRequest = $decoder->decode($stream);
```

Encode a response object to stream:

```
$encoder = new Aurora\Http\Decoder\Encoder();
$stream = $encoder->encode($response);
```

License
-------

[](#license)

The HTTP Codec is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c79a4220751bab4ff8ee0953a41c4664fddb12e2a47e69442c2e5315b5c7ef9a?d=identicon)[panlatent](/maintainers/panlatent)

---

Top Contributors

[![panlatent](https://avatars.githubusercontent.com/u/4393268?v=4)](https://github.com/panlatent "panlatent (53 commits)")

### Embed Badge

![Health badge](/badges/aurora-http-codec/health.svg)

```
[![Health](https://phpackages.com/badges/aurora-http-codec/health.svg)](https://phpackages.com/packages/aurora-http-codec)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
