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

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

fyre/request
============

A HTTP request library.

v4.0.1(7mo ago)0385↓77.8%12MITPHP

Since Dec 9Pushed 7mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (32)Used By (2)

FyreRequest
===========

[](#fyrerequest)

**FyreRequest** is a free, open-source immutable HTTP request library for *PHP*.

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

[](#table-of-contents)

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

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

[](#installation)

**Using Composer**

```
composer require fyre/request

```

In PHP:

```
use Fyre\Http\Request;
```

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

[](#basic-usage)

- `$uri` is a string or *UriInterface* and will default to *null*.
- `$options` is an array containing the message options.
    - `method` is a string representing the request method, and will default to "*get*".
    - `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*".

```
$request = new Request($uri, $options);
```

Methods
-------

[](#methods)

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

**Get Method**

Get the request method.

```
$method = $request->getMethod();
```

**Get Request Target**

Get the request target.

```
$requestTarget = $request->getRequestTarget();
```

**Get Uri**

Get the request URI.

```
$uri = $request->getUri();
```

**With Method**

Clone the *Request* with a new method.

- `$method` is a string representing the request method.

```
$newRequest = $request->withMethod($method);
```

**With Request Target**

Clone the *Request* with a new request target.

- `$requestTarget` is a string representing the request target.

```
$newRequest = $request->withRequestTarget($requestTarget);
```

**With Uri**

Clone the *Request* with a new URI.

- `$uri` is a *UriInterface*.
- `$preserveHost` is a boolean indicating whether to preserve the host header, and will default to *false*.

```
$newRequest = $request->withUri($uri, $preserveHost);
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance62

Regular maintenance activity

Popularity13

Limited adoption so far

Community12

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

Recently: every ~30 days

Total

31

Last Release

234d ago

Major Versions

v1.1.1 → v2.02023-07-31

v2.0 → v3.02023-08-01

v3.0.13 → v4.02025-10-26

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

httpmessagephprequest

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

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