PHPackages                             f3-factory/fatfree-psr7 - 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. f3-factory/fatfree-psr7

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

f3-factory/fatfree-psr7
=======================

A fat-free PHP8 implementation of PSR-7 and PSR-17

2.0.1(1y ago)698↓100%1MITPHPPHP &gt;=8.0

Since Oct 28Pushed 1y ago5 watchersCompare

[ Source](https://github.com/f3-factory/fatfree-psr7)[ Packagist](https://packagist.org/packages/f3-factory/fatfree-psr7)[ RSS](/packages/f3-factory-fatfree-psr7/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (5)Used By (1)

Fat-Free PSR-7 implementation
=============================

[](#fat-free-psr-7-implementation)

This is a lightweight [PSR-7](https://www.php-fig.org/psr/psr-7/) implementation for PHP 8.0+.

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

[](#installation)

```
composer require f3-factory/fatfree-psr7
```

Usage
-----

[](#usage)

The package includes a [PSR-17](https://www.php-fig.org/psr/psr-17/) factory.

Use these factories according to specs to create Request, Response, Uri, Stream objects.

Tests
-----

[](#tests)

Run the test suite:

```
composer test
```

NB: Custom tests were mostly taken from [Nyholm/psr7](https://github.com/Nyholm/psr7).

Benchmarks
----------

[](#benchmarks)

Benchmarks done with `devanych/psr-http-benchmark` on php 8.0+.

Checkout `benchmark` branch, start docker composer, then run in container:

```
COMPOSER_ROOT_VERSION=1.0 composer update

```

Run benchmarks on php 8.0+:

```
cd benchmark/
php benchmark.php fatfree 50000

```

Test results (best of 3 on MacBook M2 Pro)
------------------------------------------

[](#test-results-best-of-3-on-macbook-m2-pro)

Runs: 50,000GuzzleHttpSoftLaminasNyholmSlimFatfreeRuns per second144121860817641205491444422233Average time per run0.0694 ms0.0537 ms0.0567 ms0.0487 ms0.0692 ms0.0450 msTotal time3.4691 s2.6869 s2.8342 s2.4331 s3.4616 s2.2488 s---

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance41

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

3

Last Release

488d ago

Major Versions

1.0.0 → 2.0.02025-01-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/84cac52f5889d2bf6e710f2139dfc884824b2d7ce9c48a3bfe90704a94c85722?d=identicon)[ikkez](/maintainers/ikkez)

---

Top Contributors

[![ikkez](https://avatars.githubusercontent.com/u/1177647?v=4)](https://github.com/ikkez "ikkez (11 commits)")

---

Tags

http-messagepsr-17psr-7psr-7http-messagepsr-17

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/f3-factory-fatfree-psr7/health.svg)

```
[![Health](https://phpackages.com/badges/f3-factory-fatfree-psr7/health.svg)](https://phpackages.com/packages/f3-factory-fatfree-psr7)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k296.6M807](/packages/symfony-psr-http-message-bridge)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[laminas/laminas-diactoros

PSR HTTP Message implementations

546105.8M965](/packages/laminas-laminas-diactoros)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

86874.0k94](/packages/httpsoft-http-message)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)

PHPackages © 2026

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