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

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

thruster/http-response
======================

Thruster HttpResponse Component

0.2.0(10y ago)0761MITPHPPHP &gt;=7.0

Since Feb 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ThrusterIO/http-response)[ Packagist](https://packagist.org/packages/thruster/http-response)[ Docs](https://thruster.io)[ RSS](/packages/thruster-http-response/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

HttpResponse Component
======================

[](#httpresponse-component)

\[[![Latest Version](https://camo.githubusercontent.com/2303b9b315d99e772399b6b41dcc5cf841fd8b5c0bb58fed99a114d5f97602a0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f5468727573746572494f2f687474702d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2303b9b315d99e772399b6b41dcc5cf841fd8b5c0bb58fed99a114d5f97602a0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f5468727573746572494f2f687474702d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)\] () \[[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)\] (LICENSE) \[[![Build Status](https://camo.githubusercontent.com/cfb6b6656e5cf7de4d4d697228c45eb0cdc421ff9a766c072b42adc3750765cc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5468727573746572494f2f687474702d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/cfb6b6656e5cf7de4d4d697228c45eb0cdc421ff9a766c072b42adc3750765cc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5468727573746572494f2f687474702d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)\] () \[[![Code Coverage](https://camo.githubusercontent.com/336d2c40a90514d0b39efd8c2f1003985d630414b7ed6026f19213363d046b9d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f5468727573746572494f2f687474702d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/336d2c40a90514d0b39efd8c2f1003985d630414b7ed6026f19213363d046b9d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f5468727573746572494f2f687474702d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)\] () \[[![Quality Score](https://camo.githubusercontent.com/3988f44d228d3b251130cd32844c6fe0e12caeb631903727a750dfb12e00c288/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5468727573746572494f2f687474702d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/3988f44d228d3b251130cd32844c6fe0e12caeb631903727a750dfb12e00c288/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5468727573746572494f2f687474702d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)\] () \[[![Total Downloads](https://camo.githubusercontent.com/cace68a6ffcaa956bfae9a3caea9fe40bb7b2461c65be337a49a111344e069aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74687275737465722f687474702d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/cace68a6ffcaa956bfae9a3caea9fe40bb7b2461c65be337a49a111344e069aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74687275737465722f687474702d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)\] ()

\[[![Email](https://camo.githubusercontent.com/fc4998410b6b71d697bf556c37294970fedc130c081c82698cdb5ca22d70cade/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656d61696c2d7465616d4074687275737465722e696f2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/fc4998410b6b71d697bf556c37294970fedc130c081c82698cdb5ca22d70cade/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656d61696c2d7465616d4074687275737465722e696f2d626c75652e7376673f7374796c653d666c61742d737175617265)\] ()

The Thruster HttpResponse Component.

Install
-------

[](#install)

Via Composer

```
$ composer require thruster/http-response
```

Usage
-----

[](#usage)

```
use Thruster\Component\HttpResponse\ResponseBuilder;

$response = ResponseBuilder::init($response)->withJsonBody($data);
$response = ResponseBuilder::init($response)->withJsonBody($data, 'application/vnd.thruster+json');
```

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

License
-------

[](#license)

Please see [License File](LICENSE) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

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

Every ~0 days

Total

2

Last Release

3791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/770bae1f46ac2b4536db820b8642491c25e2e2fd44e761110269e4722679a80d?d=identicon)[aurimasniekis](/maintainers/aurimasniekis)

---

Tags

http-responsethruster

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thruster-http-response/health.svg)

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

###  Alternatives

[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[aura/http

The Aura HTTP package provides objects to build and send HTTP responses from the server to the client.

7138.9k4](/packages/aura-http)[popphp/pop-http

Pop Http Component for Pop PHP Framework

1019.6k14](/packages/popphp-pop-http)

PHPackages © 2026

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