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
ralouphie avatar

ralouphie/getallheaders

0
View on GitHub↗
3,795 stars·35 forks·PHP·MIT·12 views

Getallheaders

This project is a PHP environment compatibility library and polyfill designed to provide a consistent interface for retrieving all incoming HTTP request headers. It functions as a request header parser that extracts and normalizes raw server variables into a predictable associative array.

The library ensures cross-platform behavior by detecting missing native functions at runtime and injecting fallback implementations. This allows for standardized request header retrieval and server variable normalization across diverse server architectures and configurations.

Features

  • PHP Polyfills - Provides pure PHP polyfills for native functionality to ensure reliability across various server configurations.
  • Server Variable Mappings - Extracts and normalizes HTTP request headers from server-side superglobal variables into a predictable format.
  • General Compatibility Layers - Implements a compatibility layer that provides drop-in replacements for missing native PHP functions.
  • Header Extractors - Extracts all incoming HTTP request headers as a list of key-value pairs regardless of the server environment.
  • HTTP Header Polyfills - Provides a consistent polyfilled interface for retrieving all incoming HTTP request headers.
  • Header Normalization - Normalizes the casing and structure of incoming HTTP request headers for consistent application behavior.
  • Request Header Configuration - Offers a standardized interface for accessing incoming HTTP request headers without manual environment parsing.
  • Compatibility Libraries - Provides runtime fallback implementations of native functions to ensure consistent behavior across PHP environments.
  • Runtime Environment Detection - Detects available native functions at runtime to determine if fallback polyfill implementations are required.
  • Header Parsers - Analyzes and extracts request headers from raw server variables into a predictable associative array.
  • Cross-Platform Server Deployments - Ensures consistent metadata retrieval across diverse server architectures and operating system environments.
  • Case-Insensitive Header Normalizers - Provides case-insensitive access to HTTP headers while ensuring a standardized format for reliable data retrieval.
  • Global - Dynamically injects functions into the global scope to ensure a consistent interface across different server configurations.
  • PHP Superglobal Request Abstractions - Parses and abstracts PHP superglobal arrays to reconstruct missing HTTP header information.

Star history

Star history chart for ralouphie/getallheadersStar history chart for ralouphie/getallheaders

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

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

Projects sharing features with Getallheaders

These projects share indexed features with Getallheaders. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • symfony/polyfill-ctypesymfony avatar

    symfony/polyfill-ctype

    4,043View on GitHub↗

    This project is a PHP compatibility layer that implements the native ctype extension functions in pure PHP. It serves as a polyfill to ensure that character type validation remains consistent across different PHP versions and server environments. The library functions as a portability bridge, providing fallback implementations for environments where the native C extension is missing. This allows applications to maintain stability and consistent behavior regardless of the specific hosting platform or server configuration. The codebase focuses on PHP extension polyfilling and cross-platform de

    PHPcompatibilitycomponentctype
    View on GitHub↗4,043
  • php-fig/http-messagephp-fig avatar

    php-fig/http-message

    7,049View on GitHub↗

    PSR-7 HTTP Message Interfaces is a set of standardized PHP interfaces for representing HTTP request and response messages, URIs, streams, and uploaded files as immutable value objects. These interfaces define a common contract that enables interoperability between PHP frameworks and libraries when handling HTTP messages, ensuring that any implementation can be used interchangeably. The interfaces model HTTP messages as immutable value objects where any modification produces a new instance, guaranteeing message integrity throughout the request lifecycle. They provide case-insensitive header ac

    PHPhttpphpphp-fig
    View on GitHub↗7,049
  • symfony/polyfill-mbstringsymfony avatar

    symfony/polyfill-mbstring

    7,831View on GitHub↗

    This project is a PHP compatibility layer that implements multi-byte string functions for environments where the native Mbstring extension is not installed. It serves as a library for processing text in various character encodings to ensure consistent string handling across different servers. The library provides a set of tools for internationalization text handling, allowing for the processing of non-English characters and diverse languages. It ensures correct string length and manipulation for text containing characters beyond the basic ASCII set.

    PHPcompatibilitycomponentjavascript
    View on GitHub↗7,831
  • sebastianbergmann/environmentsebastianbergmann avatar

    sebastianbergmann/environment

    6,778View on GitHub↗

    This project is a PHP environment abstraction layer and runtime detection library. It functions as a logic router designed to identify the active execution engine and trigger specific code paths based on the runtime environment. The library enables cross-engine PHP development by routing application logic through different branches and managing behaviors depending on the detected context. This allows for the implementation of environment-specific configurations and conditional execution logic to ensure compatibility across various setups. The system covers runtime detection, execution path m

    PHP
    View on GitHub↗6,778
Compare all 30 related projects→

Frequently asked questions

What does ralouphie/getallheaders do?

This project is a PHP environment compatibility library and polyfill designed to provide a consistent interface for retrieving all incoming HTTP request headers. It functions as a request header parser that extracts and normalizes raw server variables into a predictable associative array.

What are the main features of ralouphie/getallheaders?

The main features of ralouphie/getallheaders are: PHP Polyfills, Server Variable Mappings, General Compatibility Layers, Header Extractors, HTTP Header Polyfills, Header Normalization, Request Header Configuration, Compatibility Libraries.

Which projects share features with ralouphie/getallheaders?

Projects with overlapping indexed features include: symfony/polyfill-ctype — This project is a PHP compatibility layer that implements the native ctype extension functions in pure PHP. It serves… php-fig/http-message — PSR-7 HTTP Message Interfaces is a set of standardized PHP interfaces for representing HTTP request and response… symfony/polyfill-mbstring — This project is a PHP compatibility layer that implements multi-byte string functions for environments where the… sebastianbergmann/environment — This project is a PHP environment abstraction layer and runtime detection library. It functions as a logic router… elbywan/wretch — Wretch is a chainable HTTP client library and Fetch API wrapper designed to simplify network request configuration,… httpie/desktop — This is a desktop HTTP client application used for constructing, sending, and analyzing HTTP and GraphQL requests. It…