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%MITPHPPHP &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 today

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

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 76% of packages

Maintenance44

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community9

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

439d 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

[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k289.3M713](/packages/symfony-psr-http-message-bridge)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k228.8M2.1k](/packages/nyholm-psr7)[laminas/laminas-diactoros

PSR HTTP Message implementations

543102.9M870](/packages/laminas-laminas-diactoros)[httpsoft/http-message

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

86834.4k76](/packages/httpsoft-http-message)[nyholm/psr7-server

Helper classes to handle PSR-7 server requests

9519.4M270](/packages/nyholm-psr7-server)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

576.5M73](/packages/laminas-laminas-stratigility)

PHPackages © 2026

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