awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
symfony avatar

symfony/http-kernel

0
View on GitHub↗
8,121 stars·98 forks·PHP·MIT·13 viewssymfony.com/http-kernel↗

Http Kernel

HttpKernel is the core kernel component of the Symfony framework that orchestrates the complete HTTP request-response lifecycle. It provides an event-driven pipeline that converts an incoming HTTP request into a matching response by dispatching lifecycle events for early interception, controller resolution, error handling, response modification, and deferred tasks.

The kernel automatically resolves the PHP callable that handles a request and injects its arguments using reflection and request attributes. It dispatches attribute-specific events for each PHP attribute found on a controller, enabling targeted listener responses without manual inspection. When exceptions occur during the request cycle, the kernel catches them and dispatches an event for listeners to return custom error responses. It also supports converting non-Response controller return values into proper Response objects through a view event, and allows modification of response headers, cookies, or body content just before sending.

A distinctive capability is the sub-request nesting mechanism, which allows a full request-response cycle to be executed inside another request for rendering embedded page fragments like widgets. The kernel also triggers a deferred termination event after the response has been sent to the client, enabling heavy tasks such as email delivery without blocking the request. After each request cycle, the kernel resets accumulated state in services to prevent memory leaks in long-running processes.

Features

  • Event-Driven Pipelines - Processes HTTP requests by dispatching events through a chain of listeners that transform a request into a response.
  • Symfony Framework Integrations - Provides the core kernel component that orchestrates the complete HTTP request-response lifecycle for Symfony applications.
  • Request Interception - Dispatches an early event so listeners can inspect or short-circuit the request before any controller runs.
  • Controller Resolvers - Resolves the PHP callable that handles a request and injects its arguments automatically.
  • Controller Argument Resolvers - Automatically builds controller callable arguments from request data and reflection metadata.
  • Controller Argument Injectors - Automatically resolves controller callables and injects arguments using reflection and request attributes.
  • Reflection-Based Argument Injectors - Automatically resolves controller arguments using reflection and request attributes without manual configuration.
  • Attribute-Based - Dispatches attribute-specific events for each PHP attribute found on a controller, enabling targeted listener responses.
  • Response Lifecycle Hooks - Dispatches events at response creation and before sending to allow modification of headers, cookies, or body content.
  • Controller Resolvers - Resolves the controller callable from request attributes to handle incoming HTTP requests.
  • Request & Response Handling - Processes an HTTP request through a structured event-driven pipeline and returns a matching response.
  • Exception Response Mapping - Catches exceptions during the request cycle and dispatches an event for listeners to return custom error responses.
  • Deferred Event Queues - Triggers a terminate event after the response is sent to the client for running heavy tasks like email delivery.
  • Exception Handling - Catches exceptions thrown during the request cycle and dispatches an event so listeners can return an appropriate error Response.
  • Request State Resets - Resets accumulated service state after each request to prevent memory leaks in long-running processes.
  • HTTP Request-Response Object Layers - Converts an incoming HTTP request into a matching response through a structured, event-driven lifecycle.
  • Lifecycle Events - Dispatches lifecycle events for early interception, error handling, response modification, and deferred tasks.
  • Sub-Request Executors - Executes nested sub-requests within a parent request cycle for rendering embedded page fragments.
  • Post-Response Task Execution - Triggers a terminate event after the response is sent, enabling deferred work like email delivery.
  • Nested Sub-Request Executors - Executes nested sub-requests within a parent request cycle for rendering embedded page fragments.
  • Sub-Request Executors - Runs a complete request-response cycle inside another request to render embedded page fragments.
  • Pre-Send Response Modifiers - Alters response headers, cookies, or body content through an event just before the response is transmitted.
  • Response Value Mapping - Dispatches a view event to convert non-Response controller return values into proper Response objects.
  • View-to-Response Converters - Dispatches a view event that lets listeners convert a non-Response controller return value into a proper Response object.
  • Controller Attribute Event Dispatchers - Dispatches attribute-specific events for each PHP attribute found on a controller, enabling targeted listener responses.
  • Pre-Send Response Modifiers - Allows modification of response headers, cookies, or body content just before sending via an event.
  • Sub-Request Executors - Allows a full request-response cycle to be executed inside another request for rendering embedded page fragments.

Star history

Star history chart for symfony/http-kernelStar history chart for symfony/http-kernel

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does symfony/http-kernel do?

HttpKernel is the core kernel component of the Symfony framework that orchestrates the complete HTTP request-response lifecycle. It provides an event-driven pipeline that converts an incoming HTTP request into a matching response by dispatching lifecycle events for early interception, controller resolution, error handling, response modification, and deferred tasks.

What are the main features of symfony/http-kernel?

The main features of symfony/http-kernel are: Event-Driven Pipelines, Symfony Framework Integrations, Request Interception, Controller Resolvers, Controller Argument Resolvers, Controller Argument Injectors, Reflection-Based Argument Injectors, Attribute-Based.

What are some open-source alternatives to symfony/http-kernel?

Open-source alternatives to symfony/http-kernel include: pallets/werkzeug — Werkzeug is a comprehensive library and toolkit for building WSGI-compliant web applications in Python. It provides… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… dodyg/practical-aspnetcore — This project is a comprehensive sample library and implementation guide for ASP.NET Core. It provides a collection of… quarkusio/quarkus — Quarkus is a Kubernetes-native Java framework designed for building high-performance, memory-efficient applications.… apache/camel — Apache Camel is an enterprise integration framework and Java integration engine designed to route and mediate data… alibaba/anyproxy — AnyProxy is an HTTP/HTTPS proxy framework built on Node.js that intercepts and modifies traffic through a plugin…

Open-source alternatives to Http Kernel

Similar open-source projects, ranked by how many features they share with Http Kernel.
  • pallets/werkzeugpallets avatar

    pallets/werkzeug

    6,869View on GitHub↗

    Werkzeug is a comprehensive library and toolkit for building WSGI-compliant web applications in Python. It provides the fundamental building blocks for web development, including an HTTP request and response toolkit, a rule-based URL routing engine, and a library for managing the overall web application lifecycle. The project is distinguished by its integrated development suite, which includes a WSGI development server featuring automatic code reloading and a PIN-protected interactive browser debugger for inspecting call stacks. It also includes a specialized WSGI test client that enables the

    Pythonhttppalletspython
    View on GitHub↗6,869
  • codeigniter4/codeigniter4codeigniter4 avatar

    codeigniter4/CodeIgniter4

    5,924View on GitHub↗

    CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools

    PHPcodeignitercodeigniter4framework-php
    View on GitHub↗5,924
  • dodyg/practical-aspnetcoredodyg avatar

    dodyg/practical-aspnetcore

    10,382View on GitHub↗

    This project is a comprehensive sample library and implementation guide for ASP.NET Core. It provides a collection of practical examples and projects that demonstrate how to build web applications, RESTful APIs, and high-performance services. The repository focuses on a variety of architectural patterns, including the development of Minimal APIs, contract-first gRPC services, and real-time communication using WebSockets and Server-Sent Events. It includes detailed implementations for user identity and security, such as token-based authentication and CSRF protection. The codebase covers a bro

    C#asp-net-coreaspnet-coreaspnetcore
    View on GitHub↗10,382
  • quarkusio/quarkusquarkusio avatar

    quarkusio/quarkus

    15,479View on GitHub↗

    Quarkus is a Kubernetes-native Java framework designed for building high-performance, memory-efficient applications. It utilizes ahead-of-time native compilation to transform Java code into standalone, optimized binaries that eliminate the need for a virtual machine, enabling rapid startup and reduced memory consumption. By performing code augmentation during the build phase, it shifts heavy processing tasks away from runtime, ensuring that applications are optimized for cloud-native environments. The framework distinguishes itself through a unified approach to reactive and imperative program

    Javacloud-nativehacktoberfestjava
    View on GitHub↗15,479
See all 30 alternatives to Http Kernel→