PHPackages                             componenta/http-psr - 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. componenta/http-psr

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

componenta/http-psr
===================

Server request creator integration for PSR HTTP factories in Componenta

v1.0.0(1mo ago)082MITPHPPHP ^8.4

Since Jun 16Pushed 1mo agoCompare

[ Source](https://github.com/componenta/http-psr)[ Packagist](https://packagist.org/packages/componenta/http-psr)[ RSS](/packages/componenta-http-psr/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (2)

Componenta HTTP PSR
===================

[](#componenta-http-psr)

Server request creation integration for Componenta HTTP. The package registers `Nyholm\Psr7Server\ServerRequestCreatorInterface` from PSR-17 factories and provides small request-aware contracts.

It intentionally does not install a concrete PSR-7 implementation. Install one integration package such as `componenta/http-psr-nyholm`, `componenta/http-psr-diactoros`, `componenta/http-psr-guzzle`, or `componenta/http-psr-slim`.

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

[](#installation)

```
composer require componenta/http-psr componenta/http-psr-nyholm
```

Configuration
-------------

[](#configuration)

`Componenta\Http\ConfigProvider` registers `ServerRequestCreatorInterface`. It requires these PSR-17 services in the container:

- `ServerRequestFactoryInterface`
- `UriFactoryInterface`
- `UploadedFileFactoryInterface`
- `StreamFactoryInterface`

Concrete integration packages provide those aliases.

Request-Aware Contracts
-----------------------

[](#request-aware-contracts)

`ServerRequestAwareInterface` declares a set-only property:

```
public ServerRequestInterface $serverRequest { set; }
```

`ServerRequestProviderInterface` declares a get-only property for services that expose the current request. `ServerRequestAware` is a trait that implements both get and set behavior for classes that need to store the current request.

Related Packages
----------------

[](#related-packages)

- [`componenta/app-http`](../app-http/README.md) uses this package to create the current server request.
- PSR-7 integration packages provide concrete factories.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance91

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

43d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20490712?v=4)[Andrey Shelamkoff](/maintainers/Shelamkoff)[@Shelamkoff](https://github.com/Shelamkoff)

---

Top Contributors

[![Shelamkoff](https://avatars.githubusercontent.com/u/20490712?v=4)](https://github.com/Shelamkoff "Shelamkoff (1 commits)")

### Embed Badge

![Health badge](/badges/componenta-http-psr/health.svg)

```
[![Health](https://phpackages.com/badges/componenta-http-psr/health.svg)](https://phpackages.com/packages/componenta-http-psr)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k17](/packages/tempest-framework)[moonshine/moonshine

Laravel administration panel

1.3k253.1k86](/packages/moonshine-moonshine)[getgrav/grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS

15.6k86.4k1](/packages/getgrav-grav)[sunrise/http-router

A powerful solution as the foundation of your project.

17451.8k11](/packages/sunrise-http-router)[api-platform/state

API Platform state interfaces

294.9M137](/packages/api-platform-state)

PHPackages © 2026

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