Download the PHP package fastpress/response without Composer
On this page you can find all versions of the php package fastpress/response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fastpress/response
More information about fastpress/response
Files in fastpress/response
Package response
Short Description An efficient and flexible HTTP response handling library for PHP, designed to integrate seamlessly with the Fastpress framework. It offers easy-to-use methods for managing HTTP responses, headers, and status codes.
License MIT
Homepage https://github.com/fastpress/http-response
Informations about the package response
Fastpress\Http\Response
A part of the Fastpress framework, Fastpress\Http\Response is a PHP class designed for handling HTTP responses efficiently and effectively. It offers a comprehensive set of features for managing response codes, headers, body content, and more, making it an indispensable tool for any PHP web application.
Features
- Response Code Management: Easily set HTTP response codes and corresponding texts.
- Response Body Handling: Define and manage the body content of responses.
- Headers Management: Add and manipulate response headers.
- Redirection Support: Simple methods to redirect users to different URLs.
- Caching Controls: Methods to control and disable browser caching.
- Protocol Specification: Customize the HTTP protocol version.
- Content Rendering: Render the response content and headers efficiently.
- Page Refresh: Facilitate immediate page refreshes.
Installation
Use Composer to integrate Fastpress\Http\Response into your project:
Requirements
- PHP 7.4 or higher.
Usage
Setting Response Code and Text
Setting Response Body
Adding Headers
Redirecting
Disabling Browser Cache
Contributing
Contributions are welcome! Please feel free to submit a pull request or open issues to improve the library.
License
This library is open-sourced software licensed under the MIT license.
Support
If you encounter any issues or have questions, please file them in the issues section on GitHub.