PHPackages                             milpa/http-symfony - 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. milpa/http-symfony

ActiveLibrary

milpa/http-symfony
==================

Symfony HttpFoundation adapter for the Milpa PHP framework: the HTTP response value objects and the base controller a host's routing invokes.

v0.1.0(today)00Apache-2.0PHPPHP &gt;=8.3CI passing

Since Jul 28Pushed todayCompare

[ Source](https://github.com/getmilpa/http-symfony)[ Packagist](https://packagist.org/packages/milpa/http-symfony)[ RSS](/packages/milpa-http-symfony/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

 [   ![Milpa](https://raw.githubusercontent.com/getmilpa/core/main/art/lockup/milpa-lockup-v-color-light.svg)  ](https://github.com/getmilpa)

Milpa HTTP Symfony
==================

[](#milpa-http-symfony)

> The **Symfony HttpFoundation adapter** for the Milpa PHP framework — the response value objects and the base controller a host's routing invokes.

[![CI](https://github.com/getmilpa/http-symfony/actions/workflows/ci.yml/badge.svg)](https://github.com/getmilpa/http-symfony/actions/workflows/ci.yml)[![Packagist](https://camo.githubusercontent.com/2c1de9eb8be7099a88148aa8d2b694b7ba311d305eb6aaca4c853bfb7676ea1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d696c70612f687474702d73796d666f6e792e737667)](https://packagist.org/packages/milpa/http-symfony)[![PHP](https://camo.githubusercontent.com/ca03f11ea27dac4dedc8ad56a7bdfc4a9ff5feb825055f9d2983616115076607/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d254532253839254135253230382e332d3737376262342e737667)](https://www.php.net/)[![License](https://camo.githubusercontent.com/798509b4df525f56802b56f8096862487f08023e3d7561c68656f8dab10d0d6e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4170616368652d2d322e302d626c75652e737667)](LICENSE)

`milpa/http` describes routes and handlers without committing to any HTTP implementation. This package is one implementation of the other half: what a controller *returns*, for a host that speaks Symfony's HttpFoundation.

It is deliberately small. A host resolves a route to a controller method, calls it with an HttpFoundation `Request`, and gets back an `HttpResponse`. That is the whole contract.

Install
-------

[](#install)

```
composer require milpa/http-symfony
```

What lives here
---------------

[](#what-lives-here)

ClassResponsibility`HttpResponse`The response a controller returns — a Symfony `Response` with the framework's own type, so a host can tell "a Milpa controller answered" from "something else did".`BlobResponse`A binary/file response with the download headers already set.`BaseController`What a controller extends: the container, plus the shorthands for the answers controllers actually give — `json()`, `cleanResponse()`, `redirect()`, `download()`.Quick example
-------------

[](#quick-example)

```
use Milpa\Http\HttpMethod;
use Milpa\Http\Routing\Route;
use Milpa\Http\Symfony\BaseController;
use Milpa\Http\Symfony\HttpResponse;
use Symfony\Component\HttpFoundation\Request;

final class HealthController extends BaseController
{
    #[Route(path: '/health', methods: HttpMethod::GET, name: 'health')]
    public function show(Request $request, array $params = []): HttpResponse
    {
        return $this->json(['status' => 'ok']);
    }
}
```

What is NOT here, and why
-------------------------

[](#what-is-not-here-and-why)

**View rendering.** A responder that turns a template into a response needs a template engine, and that engine is not published yet. Shipping the class anyway would put code in your `vendor/` that cannot run — a package that can only fail is worse than one that is missing a feature. It lives host-side until the engine earns its own release.

**PSR-7.** This is the HttpFoundation adapter. A host that speaks PSR-7 end to end does not need it: `milpa/runtime`'s kernel and `milpa/http`'s router are already PSR-7 native.

Requirements
------------

[](#requirements)

- PHP **≥ 8.3**
- [`symfony/http-foundation`](https://packagist.org/packages/symfony/http-foundation) **^7.4**
- [`milpa/core`](https://packagist.org/packages/milpa/core) **^0.6**
- [`milpa/http`](https://packagist.org/packages/milpa/http) **^0.1.5**
- [`psr/log`](https://packagist.org/packages/psr/log) **^3.0**

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

[](#contributing)

Contributions are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md). Please report security issues via [SECURITY.md](SECURITY.md), and note that this project follows a [Code of Conduct](CODE_OF_CONDUCT.md).

License
-------

[](#license)

[Apache-2.0](LICENSE) © Rodrigo Vicente - TeamX Agency.

---

Milpa is designed, built, and maintained by **[Rodrigo Vicente - TeamX Agency](https://teamx.agency/?utm_source=github&utm_medium=readme&utm_campaign=milpa&utm_content=http-symfony)**.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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

0d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/milpa-http-symfony/health.svg)

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

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k869.4M9.1k](/packages/symfony-http-kernel)[laravel/framework

The Laravel Framework.

34.8k543.8M20.6k](/packages/laravel-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19566.0M1.8k](/packages/drupal-core)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M425](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M605](/packages/shopware-core)

PHPackages © 2026

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