awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
symfony avatar

symfony/http-foundation

0
View on GitHub↗
8,630 estrellas·307 forks·PHP·MIT·6 vistassymfony.com/http-foundation↗

Http Foundation

Symfony HttpFoundation is an object-oriented library that models HTTP requests and responses as structured objects, wrapping PHP superglobals into typed parameter bags and providing dedicated objects for headers, cookies, and file uploads. It serves as the foundational layer for building HTTP-based applications in PHP, offering a complete abstraction for reading request data, constructing responses, and managing the full request-response lifecycle.

The library distinguishes itself through composable request matchers that check incoming requests against conditions like IP, method, host, or path, and through its support for streaming responses and server-sent events for real-time data delivery. It also provides session storage abstraction for managing user data across requests, HTTP cache header management for controlling client and proxy caching behavior, and file serving with automatic range request handling and optional X-Sendfile delegation.

Additional capabilities include JSON API response handling, URL generation for converting paths into absolute or relative URLs, and cookie management through dedicated cookie objects with configurable attributes. The library also supports request simulation for testing and development without relying on PHP superglobals.

Features

  • HTTP Request-Response Object Layers - Provides the foundational object-oriented layer for modeling HTTP requests and responses in PHP.
  • Request Matching - Implements composable matcher classes that check requests against IP, method, host, or path conditions.
  • Cookie Objects - Represents HTTP cookies as dedicated objects with configurable attributes for domain, path, expiration, and security flags.
  • Parameter Bag Abstractions - Wraps PHP superglobals into typed parameter bag objects for structured access to query, body, cookies, and headers.
  • Request Matchers - Checks incoming requests against composable rules for IP, method, host, or path using dedicated matcher classes.
  • Cookie Objects - Provides dedicated cookie objects with configurable attributes for attaching to HTTP responses.
  • Request Data Accessors - Provides structured property objects for reading query, body, cookies, files, and headers from incoming requests.
  • HTTP Response Builders - Ships a structured object for constructing and sending HTTP responses with status codes, headers, and body content.
  • Header Bag Management - Manages HTTP response headers through a dedicated bag object with methods for cache control, cookies, and content negotiation.
  • Raw HTTP Request Construction - Wraps raw PHP superglobals into structured objects with methods for headers, parameters, and file uploads.
  • Session Storage - Manages user session data across requests through a server-side storage mechanism decoupled from request handling.
  • HTTP Cache Headers - Manages cache-control, expiration, ETag, and last-modified headers for HTTP caching.
  • Server-Side Session Stores - Provides server-side storage and retrieval of user session information across HTTP requests.
  • HTTP Range Request Handling - Serves files with automatic support for HTTP range requests and optional X-Sendfile delegation to the web server.
  • Range Request File Servings - Ships a file serving component with automatic range request handling and X-Sendfile delegation.
  • Composable Request Matchers - Provides composable matcher classes that check requests against IP, method, host, or path conditions.
  • Composable - Provides composable matcher classes that check requests against IP, method, host, or path conditions.
  • Server-Sent Events - Pushes real-time updates over a single long-lived HTTP connection using a structured event stream format.
  • Response Streaming - Sends response content incrementally using callables or iterables for large payloads and real-time data.
  • Request Simulators - Allows creating request objects from URIs and parameters without relying on PHP superglobals for testing.
  • HTTP Redirects - Sends HTTP redirect responses with status codes and location headers to guide clients to different URLs.
  • JSON Response Formatters - Encodes data as JSON and sets the appropriate Content-Type header for API responses.
  • Streaming Response Handlers - Supports sending response content incrementally, including JSON streaming and server-sent events.
  • URL Generation - Converts paths into absolute or relative URLs for use in responses or links.

Historial de estrellas

Gráfico del historial de estrellas de symfony/http-foundationGráfico del historial de estrellas de symfony/http-foundation

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Http Foundation

Proyectos open-source similares, clasificados según cuántas características comparten con Http Foundation.
  • symfony/routingAvatar de symfony

    symfony/routing

    7,618Ver en GitHub↗

    This PHP routing library is an HTTP request router and matcher designed to map incoming URL paths to specific controller actions using defined patterns and configuration. It serves as a programmatic interface for defining, loading, and resolving URL patterns, while providing a URL generator to produce absolute or relative URIs from route names and parameters. The system supports diverse route loading through YAML, XML, PHP arrays, and class attributes, utilizing compiled route matching to optimize performance. It enables sophisticated request handling through regex-based path matching, sub-do

    PHPcomponentphprouter
    Ver en GitHub↗7,618
  • codeigniter4/codeigniter4Avatar de codeigniter4

    codeigniter4/CodeIgniter4

    5,924Ver en 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
    Ver en GitHub↗5,924
  • pallets/werkzeugAvatar de pallets

    pallets/werkzeug

    6,869Ver en 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
    Ver en GitHub↗6,869
  • h3js/h3Avatar de h3js

    h3js/h3

    5,353Ver en GitHub↗

    Hono is a minimal JavaScript HTTP framework designed for building web servers across multiple runtimes, including Node.js, edge runtimes, and serverless platforms. It functions as a cross-runtime web server and a web standard API wrapper, normalizing various runtime request and response objects into standard Web API signatures. The project serves as an HTTP middleware orchestrator and request handler, utilizing a middleware-based request pipeline and hierarchical route mounting to create modular server structures. It distinguishes itself through a runtime-agnostic event wrapper that ensures c

    TypeScript
    Ver en GitHub↗5,353
Ver las 30 alternativas a Http Foundation→

Preguntas frecuentes

¿Qué hace symfony/http-foundation?

Symfony HttpFoundation is an object-oriented library that models HTTP requests and responses as structured objects, wrapping PHP superglobals into typed parameter bags and providing dedicated objects for headers, cookies, and file uploads. It serves as the foundational layer for building HTTP-based applications in PHP, offering a complete abstraction for reading request data, constructing responses, and managing the full request-response lifecycle.

¿Cuáles son las características principales de symfony/http-foundation?

Las características principales de symfony/http-foundation son: HTTP Request-Response Object Layers, Request Matching, Cookie Objects, Parameter Bag Abstractions, Request Matchers, Request Data Accessors, HTTP Response Builders, Header Bag Management.

¿Qué alternativas de código abierto existen para symfony/http-foundation?

Las alternativas de código abierto para symfony/http-foundation incluyen: symfony/routing — This PHP routing library is an HTTP request router and matcher designed to map incoming URL paths to specific… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… pallets/werkzeug — Werkzeug is a comprehensive library and toolkit for building WSGI-compliant web applications in Python. It provides… h3js/h3 — Hono is a minimal JavaScript HTTP framework designed for building web servers across multiple runtimes, including… perwendel/spark — Spark is a lightweight Java web framework and embedded server designed for building web applications with minimal… pallets/quart — Quart is an asynchronous Python web framework that implements the ASGI specification. It is used to build…