PHPackages                             fast-forward/http-factory - 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. fast-forward/http-factory

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

fast-forward/http-factory
=========================

Fast Forward PSR-7 HTTP Factory utility classes

v1.2.0(1mo ago)0611MITPHPPHP ^8.3CI passing

Since May 6Pushed 9mo agoCompare

[ Source](https://github.com/php-fast-forward/http-factory)[ Packagist](https://packagist.org/packages/fast-forward/http-factory)[ Docs](https://github.com/php-fast-forward)[ RSS](/packages/fast-forward-http-factory/feed)WikiDiscussions main Synced 1mo ago

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

🚀 FastForward HTTP Factory
==========================

[](#-fastforward-http-factory)

[![PHP Version](https://camo.githubusercontent.com/eae56871fe970f6e0db5b5d64acba0cf0e40427c9c62ba8a81a66dba5c033d95/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d3838393242463f6c6f676f3d706870)](https://www.php.net/)[![License](https://camo.githubusercontent.com/02b939e9c46f129b2433a7e207fdeb0312ac1da56f41c57fca51e470b2930563/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7068702d666173742d666f72776172642f687474702d666163746f7279)](https://opensource.org/licenses/MIT)[![CI](https://github.com/php-fast-forward/http-factory/actions/workflows/tests.yml/badge.svg)](https://github.com/php-fast-forward/http-factory/actions)

A [PSR-11](https://www.php-fig.org/psr/psr-11/) compatible service provider that registers a fully functional set of [PSR-17](https://www.php-fig.org/psr/psr-17/) and [PSR-7](https://www.php-fig.org/psr/psr-7/) HTTP factories using [Nyholm PSR-7](https://github.com/Nyholm/psr7) and [Nyholm ServerRequestCreator](https://github.com/Nyholm/psr7-server).

Designed to work out of the box with the [`php-fast-forward/container`](https://github.com/php-fast-forward/container) autowiring system.

---

📦 Installation
--------------

[](#-installation)

```
composer require fast-forward/http-factory
```

✅ Features
----------

[](#-features)

- Registers the Psr17Factory as the base implementation for all PSR-17 interfaces
- Registers the ServerRequestCreator using InvokableFactory
- Provides ServerRequestInterface::class using fromGlobals() via MethodFactory
- Aliases:
    - RequestFactoryInterface
    - ResponseFactoryInterface
    - ServerRequestFactoryInterface
    - StreamFactoryInterface
    - UploadedFileFactoryInterface
    - UriFactoryInterface

🛠️ Usage
--------

[](#️-usage)

If you’re using `fast-forward/container`:

```
use FastForward\Container\container;
use FastForward\Config\ArrayConfig;
use FastForward\Container\ContainerInterface;

$config = new ArrayConfig([
    ContainerInterface::class => [
        // Reference the service provider by class name
        HttpMessageFactoryServiceProvider::class,
    ],
]);

$container = container($config);

$requestFactory = $container->get(Psr\Http\Message\RequestFactoryInterface::class);
$serverRequest = $container->get(Psr\Http\Message\ServerRequestInterface::class);
```

🔧 Services Registered
---------------------

[](#-services-registered)

The following services will be automatically registered in your container when using `HttpMessageFactoryServiceProvider`:

Service InterfaceImplementation Source`Psr\Http\Message\RequestFactoryInterface``Nyholm\Psr7\Factory\Psr17Factory` (via alias)`Psr\Http\Message\ResponseFactoryInterface``Nyholm\Psr7\Factory\Psr17Factory` (via alias)`Psr\Http\Message\ServerRequestFactoryInterface``Nyholm\Psr7\Factory\Psr17Factory` (via alias)`Psr\Http\Message\StreamFactoryInterface``Nyholm\Psr7\Factory\Psr17Factory` (via alias)`Psr\Http\Message\UploadedFileFactoryInterface``Nyholm\Psr7\Factory\Psr17Factory` (via alias)`Psr\Http\Message\UriFactoryInterface``Nyholm\Psr7\Factory\Psr17Factory` (via alias)`Nyholm\Psr7\Factory\Psr17Factory`Registered via `InvokableFactory``Nyholm\Psr7Server\ServerRequestCreator`Registered via `InvokableFactory`, with dependencies`Psr\Http\Message\ServerRequestInterface`Created by calling `fromGlobals()` on `ServerRequestCreator` via `MethodFactory`---

📂 License
---------

[](#-license)

This package is open-source software licensed under the [MIT License](https://opensource.org/licenses/MIT).

---

🤝 Contributing
--------------

[](#-contributing)

Contributions, issues, and feature requests are welcome!
Feel free to open a [GitHub Issue](https://github.com/php-fast-forward/http-factory/issues) or submit a Pull Request.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance72

Regular maintenance activity

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~108 days

Total

4

Last Release

41d ago

PHP version history (3 changes)v1.0.0PHP ^8.1

v1.1.0PHP ^8.2

v1.2.0PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![coisa](https://avatars.githubusercontent.com/u/426835?v=4)](https://github.com/coisa "coisa (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

http-factoryphpphp-librarypsr-7service-provider

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fast-forward-http-factory/health.svg)

```
[![Health](https://phpackages.com/badges/fast-forward-http-factory/health.svg)](https://phpackages.com/packages/fast-forward-http-factory)
```

###  Alternatives

[laudis/neo4j-php-client

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

184616.9k31](/packages/laudis-neo4j-php-client)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

153.3k](/packages/art4-requests-psr18-adapter)

PHPackages © 2026

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