Symfony HttpFoundation adapter for the Milpa PHP framework: the HTTP response value objects and the base controller a host's routing invokes.
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 2026-07-28 01:05 UTC
This package is auto-updated.
Last update: 2026-07-28 01:20:41 UTC
The Symfony HttpFoundation adapter for the Milpa PHP framework — the response value objects and the base controller a host's routing invokes.
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.
composer require milpa/http-symfonyWhat lives here
| Class | Responsibility |
|---|---|
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(). |
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
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.
symfony/http-foundation ^7.4milpa/core ^0.6milpa/http ^0.1.5psr/log ^3.0Contributions are welcome — see CONTRIBUTING.md. Please report security issues via SECURITY.md, and note that this project follows a Code of Conduct.
LicenseApache-2.0 © Rodrigo Vicente - TeamX Agency.
Milpa is designed, built, and maintained by Rodrigo Vicente - TeamX Agency.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | milpa/admin (v0.1.0) | 0 | 11.16 | 28-07-2026 |
| 2 | milpa/live (v0.2.0) | 0 | 17.79 | 28-07-2026 |
| 3 | milpa/auth (v0.3.0) | 0 | 10.94 | 28-07-2026 |
| 4 | milpa/live-web (v0.2.0) | 0 | 18.48 | 28-07-2026 |
| 5 | milpa/skeleton (v0.10.0) | 0 | 20.4 | 28-07-2026 |
| 6 | milpa/orchestrator (v0.3.0) | 0 | 16.04 | 28-07-2026 |
| 7 | seip25/lila-php (v1.59) | 0 | 38 | 28-07-2026 |
| 8 | milpa/live-tui (v0.3.0) | 0 | 12.4 | 28-07-2026 |
| 9 | laravel-workflow/waterline (2.0.0-rc.1) | 0 | 21.11 | 28-07-2026 |
| 10 | vortos/vortos-framework (v1.0.0-alpha-298) | 0 | 35 | 28-07-2026 |