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

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

solophp/http-emitter
====================

PSR-7 HTTP Response Emitter

v2.1.0(5mo ago)0110MITPHPPHP ^8.0

Since Jul 13Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/SoloPHP/HTTP-Emitter)[ Packagist](https://packagist.org/packages/solophp/http-emitter)[ RSS](/packages/solophp-http-emitter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

HTTP-Emitter
============

[](#http-emitter)

[![Version](https://camo.githubusercontent.com/dd1b51eac051b316a3173585bc64d36e19fa2d4e90a4581734cc292c175130f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d322e302e302d626c75652e737667)](https://github.com/solophp/http-emitter)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![Coverage](https://camo.githubusercontent.com/b3545ae1bcdb4ea486f71f87b43001e82dd21933bc8035d44601706c851265da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e2e737667)](https://github.com/solophp/http-emitter)

PSR-7 HTTP Response Emitter for PHP 8+

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

[](#installation)

```
composer require solophp/http-emitter
```

Usage
-----

[](#usage)

```
use Solo\HttpEmitter\Emitter;
use Psr\Http\Message\ResponseInterface;

$emitter = new Emitter();
$emitter->emit($response);
```

Features
--------

[](#features)

- PSR-7 compliant HTTP response emitter
- Efficient chunked output for large responses
- Proper handling of connection status
- Support for all HTTP status codes
- Optimized for PHP 8+

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

[](#requirements)

- PHP ^8.0
- PSR HTTP Message ^1.1|^2.0

Testing
-------

[](#testing)

```
# Run tests
composer test

# Code style check
composer cs

# Code style fix
composer cs-fix
```

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance72

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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.

###  Release Activity

Cadence

Every ~255 days

Total

3

Last Release

156d ago

Major Versions

v1.0.0 → v2.0.02025-08-01

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f29817cec408d033cd4441c8f760e3ae40248dc0f66856a09080d282aee6959?d=identicon)[Vitaliy Olos](/maintainers/Vitaliy%20Olos)

---

Top Contributors

[![SoloPHP](https://avatars.githubusercontent.com/u/175482616?v=4)](https://github.com/SoloPHP "SoloPHP (5 commits)")

---

Tags

httpresponsepsr-7phpemitter

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/solophp-http-emitter/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.1k](/packages/guzzlehttp-psr7)[psr/http-server-middleware

Common interface for HTTP server-side middleware

18091.2M1.5k](/packages/psr-http-server-middleware)[httpsoft/http-basis

Simple and fast HTTP microframework implementing PSR standards

1334.9k1](/packages/httpsoft-http-basis)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

153.3k](/packages/art4-requests-psr18-adapter)[chillerlan/php-httpinterface

A PSR-7/17/18 http message/client implementation

1417.1k5](/packages/chillerlan-php-httpinterface)

PHPackages © 2026

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