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(11y ago)021MITPHPPHP &gt;=5.5.9

Since Jun 24Pushed 11y 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 2d 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 21% 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

4028d 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.1k869.4M8.8k](/packages/symfony-http-kernel)[api-platform/core

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

2.6k51.2M339](/packages/api-platform-core)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.4k67.4M263](/packages/nelmio-api-doc-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.4k](/packages/symfony-security-bundle)

PHPackages © 2026

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