PHPackages                             fyre/message - 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/message

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

fyre/message
============

A HTTP message library.

v4.0.2(7mo ago)0430↓80%2MITPHP

Since Dec 9Pushed 7mo ago1 watchersCompare

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

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

FyreMessage
===========

[](#fyremessage)

**FyreMessage** is a free, open-souce immutable HTTP message library for *PHP*.

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

[](#table-of-contents)

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

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

[](#installation)

**Using Composer**

```
composer require fyre/message

```

In PHP:

```
use Fyre\Http\Message;
```

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*".

```
$message = new Message($options);
```

Methods
-------

[](#methods)

**Get Body**

Get the message body.

```
$stream = $message->getBody();
```

**Get Header**

Get the values of message header.

- `$name` is a string representing the header name.

```
$values = $message->getHeader($name);
```

**Get Header Line**

Get the value string of a message header.

- `$name` is a string representing the header name.

```
$value = $message->getHeaderValue($name);
```

**Get Headers**

Get the message headers.

```
$headers = $message->getHeaders();
```

**Get Protocol Version**

Get the protocol version.

```
$version = $message->getProtocolVersion();
```

**Has Header**

Determine whether the message has a header.

- `$name` is a string representing the header name.

```
$hasHeader = $message->hasHeader($name);
```

**With Added Header**

Clone the *Message* with new value(s) added to a header.

- `$name` is a string representing the header name.
- `$value` is a string or array representing the header value.

```
$newMessage = $message->withAddedHeader($name, $value);
```

**With Body**

Clone the *Message* with a new body.

- `$stream` is a *StreamInterface* representing the message body.

```
$newMessage = $message->withBody($stream);
```

**With Header**

Clone the *Message* with a new header.

- `$name` is a string representing the header name.
- `$value` is a string or array representing the header value.

```
$newMessage = $message->withHeader($name, $value);
```

**Without Header**

Clone the *Message* without a header.

- `$name` is a string representing the header name.

```
$newMessage = $message->withoutHeader($name);
```

**With Protocol Version**

Clone the *Message* with a new protocol version.

- `$version` is a string representing the protocol version.

```
$newMessage = $message->withProtocolVersion($version);
```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance62

Regular maintenance activity

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

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

Recently: every ~24 days

Total

25

Last Release

234d ago

Major Versions

v1.0.9 → v2.02023-07-31

v2.0.1 → v3.02023-08-01

v3.0.11 → 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 (19 commits)")

---

Tags

httpmessagephp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  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)
