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

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

fyre/response
=============

A HTTP response library.

v4.0.2(7mo ago)0378↓77.8%2MITPHP

Since Dec 9Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/elusivecodes/FyreResponse)[ Packagist](https://packagist.org/packages/fyre/response)[ RSS](/packages/fyre-response/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (5)Versions (29)Used By (2)

FyreResponse
============

[](#fyreresponse)

**FyreResponse** is a free, open-source immutable HTTP response library for *PHP*.

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Methods](#methods)

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

[](#installation)

**Using Composer**

```
composer require fyre/response

```

In PHP:

```
use Fyre\Http\Response;
```

Basic Usage
-----------

[](#basic-usage)

- `$options` is an array containing the message options.
    - `body` is a string or *StreamInterface* representing the message body, and will default to "".
    - `headers` is an array containing headers to set, and will default to *\[\]*.
    - `protocolVersion` is a string representing the protocol version, and will default to "*1.1*".
    - `statusCode` is a number representing the status code, and will default to *200*.
    - `reasonPhrase` is a string representing the reason phrase, and will default to "".

```
$response = new Response($options);
```

If a `reasonPhrase` is not provided, the default reason for the status code will be used instead.

Methods
-------

[](#methods)

This class extends the [*Message*](https://github.com/elusivecodes/FyreMessage) class.

**Get Reason Phrase**

Get the response reason phrase.

```
$reason = $response->getReasonPhrase();
```

**Get Status Code**

Get the status code.

```
$code = $response->getStatusCode();
```

**With Status**

Set the status code.

- `$code` is a number representing the status code.
- `$reasonPhrase` is a string representing the reason phrase, and will default to "".

```
$newResponse = $response->withStatus($code, $reasonPhrase);
```

If a `$reasonPhrase` is not provided, the default reason for the status code will be used instead.

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance62

Regular maintenance activity

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~52 days

Recently: every ~24 days

Total

28

Last Release

234d ago

Major Versions

v1.0.12 → v2.02023-07-31

v2.0 → v3.02023-08-01

v3.0.12 → v4.02025-10-25

### Community

Maintainers

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

---

Top Contributors

[![elusivecodes](https://avatars.githubusercontent.com/u/18050480?v=4)](https://github.com/elusivecodes "elusivecodes (17 commits)")

---

Tags

httpmessagephpresponse

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.7k](/packages/guzzlehttp-psr7)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k312.3M929](/packages/symfony-psr-http-message-bridge)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

185671.3k41](/packages/laudis-neo4j-php-client)

PHPackages © 2026

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