PHPackages                             graefe/binary-response - 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. graefe/binary-response

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

graefe/binary-response
======================

Small extension to Symfony's HttpFoundation allowing decoupled, in-memory binary responses.

v0.1.0(10y ago)021MITPHPPHP &gt;=5.5.9

Since Jun 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/cgraefe/binary-response)[ Packagist](https://packagist.org/packages/graefe/binary-response)[ RSS](/packages/graefe-binary-response/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

BinaryResponse
==============

[](#binaryresponse)

[![Build Status](https://camo.githubusercontent.com/64fc734cc573f67cad21f03ecc0927690497992464e93b8837d44718cfbaae0d/68747470733a2f2f7472617669732d63692e6f72672f636772616566652f62696e6172792d726573706f6e73652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cgraefe/binary-response)

BinaryResponse is a small extension to Symfony's HttpFoundation component, allowing for decoupled, in-memory binary responses. The BinaryResponse class behaves almost like the BinaryFileResponse class from HttpFoundation with its built-in support for range requests. Instead of a regular file though, it takes any object implementing the VirtualFileSource contract interface.

The InMemorySource provides a basic in-memory implementation of this contract:

```
use Graefe\Net\Http\BinaryResponse;
use Graefe\Net\Http\BinaryResponse\InMemorySource;

$source = new InMemorySource('Any binary data, maybe from a BLOB column.');
$response = new BinaryResponse($source);
$reponse->send();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3982d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/graefe-binary-response/health.svg)

```
[![Health](https://phpackages.com/badges/graefe-binary-response/health.svg)](https://phpackages.com/packages/graefe-binary-response)
```

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k822.4M6.8k](/packages/symfony-http-kernel)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[friendsofsymfony/http-cache-bundle

Set path based HTTP cache headers and send invalidation requests to your HTTP cache

43813.2M47](/packages/friendsofsymfony-http-cache-bundle)[illuminate/http

The Illuminate Http package.

11936.0M5.1k](/packages/illuminate-http)[api-platform/http-cache

API Platform HttpCache component

223.2M7](/packages/api-platform-http-cache)

PHPackages © 2026

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