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

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

componenta/app-http
===================

HTTP runtime integration for Componenta applications

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

Since Jun 22Pushed 1mo agoCompare

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

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

Componenta App HTTP
===================

[](#componenta-app-http)

HTTP runtime integration for Componenta applications. The package connects `componenta/app` with a PSR-15 middleware pipeline, server request creation, and PSR-7 response emitting.

Use this package when the application must handle HTTP requests. Routing, body parsing, response helpers, and concrete PSR-7 implementations live in separate packages.

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

[](#installation)

```
composer require componenta/app-http
```

The package exposes `Componenta\App\Server\ConfigProvider` through Composer metadata.

Dependencies
------------

[](#dependencies)

The package requires PHP `^8.4`, `componenta/app`, `componenta/config`, `componenta/http-emitter`, `componenta/http-psr`, `componenta/middleware-factory`, `componenta/path-resolver`, `componenta/pipeline`, `nyholm/psr7-server`, PSR-11, and PSR-15 middleware contracts.

Registered Services
-------------------

[](#registered-services)

`ConfigProvider` registers:

Service or config keyPurpose`HttpAppAdapter`Creates an HTTP application for the HTTP scope.`HttpBootTargetAdapter`Adapts the HTTP application to a boot target.`HttpBootloader`Loads configured middleware into the HTTP pipeline.`App`The HTTP application implementation.Runtime Behavior
----------------

[](#runtime-behavior)

The HTTP app creates a server request through `componenta/http-psr`, runs it through the configured middleware pipeline, and emits the resulting PSR-7 response through `componenta/http-emitter`.

During HTTP boot, `HttpBootloader` requires `config/pipeline.php` through the configured path resolver. That file is responsible for calling `$app->pipe(...)` on the HTTP boot target.

```
