Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

milpa/http-symfony (v0.1.0)

Дата публикации: 28-07-2026 01:05:02

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.

Maintainers

b80f2749e9bbd00f8b8456d76817e679e4d62623733777f72b866fe21ef1d19e?s=48&d=identicon

v0.1.0 2026-07-28 01:05 UTC

This package is auto-updated.

Last update: 2026-07-28 01:20:41 UTC


README

Milpa

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

CI Packagist PHP 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
composer require milpa/http-symfony
What 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().
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

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 Contributing

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

License

Apache-2.0 © Rodrigo Vicente - TeamX Agency.

Milpa is designed, built, and maintained by Rodrigo Vicente - TeamX Agency.

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1milpa/admin (v0.1.0)011.1628-07-2026
2milpa/live (v0.2.0)017.7928-07-2026
3milpa/auth (v0.3.0)010.9428-07-2026
4milpa/live-web (v0.2.0)018.4828-07-2026
5milpa/skeleton (v0.10.0)020.428-07-2026
6milpa/orchestrator (v0.3.0)016.0428-07-2026
7seip25/lila-php (v1.59)03828-07-2026
8milpa/live-tui (v0.3.0)012.428-07-2026
9laravel-workflow/waterline (2.0.0-rc.1)021.1128-07-2026
10vortos/vortos-framework (v1.0.0-alpha-298)03528-07-2026

Классификация: Пресс-релизы. Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 12.31. Источник: packagist.org.