ralouphie/getallheaders
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
The ralouphie/getallheaders is a composer package that provides a polyfill for the PHP getallheaders()
function. It's designed to fetch all HTTP headers from the current request, making it compatible even with PHP versions which naturally do not support this function. Perfect for those working with PHP versions 5.3 and above, thanks to its backward compatibility, it's a lightweight and simple tool for every PHP developer in handling and manipulating HTTP headers.
To use ralouphie/getallheaders in your PHP project, you'll need to have Composer, the dependency manager for PHP, already installed. After that, installation is a breeze. If you're using a PHP version that is 5.6 or higher, you just have to run the following command in your terminal:
composer require ralouphie/getallheaders
For those using a PHP version that is less than 5.6, the command is slightly different:
composer require ralouphie/getallheaders "^2"
Once you've successfully installed the ralouphie/getallheaders package, you can easily call the getallheaders()
function just like you would with any built-in PHP function.
As for the documentation, the comprehensive guide on how to use and navigate through ralouphie/getallheaders is available on its GitHub repository page, located at https://github.com/ralouphie/getallheaders. The page is quite intuitive and well-explained, allowing developers to understand the usage and application of this polyfill function in their PHP projects.