PHPackages                             neur0toxine/psr.http-factory-implementation.nyholm - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. neur0toxine/psr.http-factory-implementation.nyholm

ActiveMetapackage[PSR &amp; Standards](/categories/psr-standards)

neur0toxine/psr.http-factory-implementation.nyholm
==================================================

Satisfy "psr/http-factory-implementation" with packages provided by user, or fallback to "nyholm".

1.1(4y ago)070.2k↓21.2%3MIT

Since May 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Neur0toxine/psr.http-factory-implementation.nyholm)[ Packagist](https://packagist.org/packages/neur0toxine/psr.http-factory-implementation.nyholm)[ RSS](/packages/neur0toxine-psrhttp-factory-implementationnyholm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (3)

Fallback for `psr/http-factory-implementation` using `nyholm`
=============================================================

[](#fallback-for-psrhttp-factory-implementation-using-nyholm)

Provides a metapackage for library needing `psr/http-factory-implementation`that fallback to a default implementation when user does not meet the initial requirements.

Usage
-----

[](#usage)

```
composer require "Neur0toxine/psr.http-factory-implementation.nyholm:*"
```

Composer will, by preference:

- use an implementation provided by the user
- otherwise, fallbacks to `nyholm/psr7`

How does it works
-----------------

[](#how-does-it-works)

This package contains 2 versions:

1. The highest [1.1](https://github.com/Neur0toxine/psr.http-factory-implementation.nyholm/blob/1.1/composer.json) needs nothing more than your requirements.
2. The lowest [1.0](https://github.com/Neur0toxine/psr.http-factory-implementation.nyholm/blob/1.0/composer.json) triggers install of `nyholm/psr7`.

Composer will choose this highest version when user already has a package that satisfy `psr/http-factory-implementation`. Otherwise, composer will choose the lowest version and in that case will download the following packages: `nyholm/psr7`.

What problem does it solve?
---------------------------

[](#what-problem-does-it-solve)

You are maintaining a library that need an implementation of `psr/http-factory-implementation`, but you don't want requiring a specific implementation.

ie. You are maintainer of library that use the following composer.json

```
{
  "name": "acme/lib",
  "require": {
    "psr/http-factory-implementation": "^1.0",
  }
}
```

When end users requires you library with the following code

```
{
    "name": "end-user/app",
    "require": {
      "acme/lib": "^1.0"
    }
}
```

They probably ends with such error

```
composer up

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for acme/lib ^1.0 -> satisfiable by acme/lib[1.0].
    - acme/lib 1.0 requires psr/http-factory-implementation ^1.0 -> no matching package found.
```

You can ask user to install a random package, it works, but the DX is very bad, and confusing at first.

By using `Neur0toxine/psr.http-factory-implementation.nyholm`, users will be able to require their preferred implementation or fallback to your default choice

### Example of user that meet the preferred requirements

[](#example-of-user-that-meet-the-preferred-requirements)

```
{
    "name": "end-user/app",
    "require": {
        "acme/lib": "^1.0",
        "third-party/provide-implementation": "^1.0"
    }
}
```

```
composer up
...
Package operations: 2 installs, 0 updates, 0 removals
  - Installing acme/lib (1.0)
  - Installing Neur0toxine/psr.http-factory-implementation.nyholm (1.1)
```

### Example of user that fallback to your recommendations

[](#example-of-user-that-fallback-to-your-recommendations)

```
{
    "name": "end-user/app",
    "require": {
        "acme/lib": "^1.0"
    }
}
```

```
composer up
...
Package operations: 3 installs, 0 updates, 0 removals
  - Installing acme/lib (1.0)
  - Installing Neur0toxine/psr.http-factory-implementation.nyholm (1.0)
  - Installing nyholm/psr7 (1.0)
```

Contributing
------------

[](#contributing)

This repository is automatically generated. If you want contributing and submitting an issue or a Pull Request, please use [composer-fallback/generator](https://github.com/composer-fallback/generator).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

1824d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e421901d9ce2555337064441185824281408c5cdcd1224ed74e824995c3afd0?d=identicon)[Neur0toxine](/maintainers/Neur0toxine)

---

Top Contributors

[![Neur0toxine](https://avatars.githubusercontent.com/u/24733820?v=4)](https://github.com/Neur0toxine "Neur0toxine (3 commits)")

---

Tags

psrcomposerfallbackdefaulthttp-factory-implementation

### Embed Badge

![Health badge](/badges/neur0toxine-psrhttp-factory-implementationnyholm/health.svg)

```
[![Health](https://phpackages.com/badges/neur0toxine-psrhttp-factory-implementationnyholm/health.svg)](https://phpackages.com/packages/neur0toxine-psrhttp-factory-implementationnyholm)
```

###  Alternatives

[psr/container

Common Container Interface (PHP FIG PSR-11)

10.0k1.0B3.7k](/packages/psr-container)[psr/clock

Common interface for reading the clock.

642332.9M343](/packages/psr-clock)[lctrs/psalm-psr-container-plugin

Let Psalm understand better psr11 containers

17648.1k13](/packages/lctrs-psalm-psr-container-plugin)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)

PHPackages © 2026

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