PHPackages                             adaiasmagdiel/easy-response - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. adaiasmagdiel/easy-response

ActiveLibrary[HTTP &amp; Networking](/categories/http)

adaiasmagdiel/easy-response
===========================

A PHP class designed to streamline HTTP responses, making it easier to handle requests and deliver appropriate content.

v1.0.0(2y ago)04MITPHP

Since Apr 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/AdaiasMagdiel/easy-response)[ Packagist](https://packagist.org/packages/adaiasmagdiel/easy-response)[ RSS](/packages/adaiasmagdiel-easy-response/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Easy Response
=============

[](#easy-response)

[![Latest Stable Version](https://camo.githubusercontent.com/b02e1781d1eb87d0389beea02741723661c412e0f8c1d26c7ced5549ca2b9313/687474703a2f2f706f7365722e707567782e6f72672f6164616961736d61676469656c2f656173792d726573706f6e73652f76)](https://packagist.org/packages/adaiasmagdiel/easy-response)[![Total Downloads](https://camo.githubusercontent.com/c10a276fb4c0a6f69d92988a523b1a0adbc1ddd28dfeb8f0074e929e87301f19/687474703a2f2f706f7365722e707567782e6f72672f6164616961736d61676469656c2f656173792d726573706f6e73652f646f776e6c6f616473)](https://packagist.org/packages/adaiasmagdiel/easy-response)[![License](https://camo.githubusercontent.com/1d699439cae4487633062dc0dfe391ba3fe0b1ea6b2a40b438a7e1daa3aaa40e/687474703a2f2f706f7365722e707567782e6f72672f6164616961736d61676469656c2f656173792d726573706f6e73652f6c6963656e7365)](https://packagist.org/packages/adaiasmagdiel/easy-response)[![PHP Version Require](https://camo.githubusercontent.com/69be23de817ea1fd8db504beab69d75e821c4f00050e18acbd5b7c4347783483/687474703a2f2f706f7365722e707567782e6f72672f6164616961736d61676469656c2f656173792d726573706f6e73652f726571756972652f706870)](https://packagist.org/packages/adaiasmagdiel/easy-response)

Easy Response is a PHP library designed to streamline HTTP responses, making it easier to handle requests and deliver appropriate content. This library provides a simple and intuitive interface for creating and sending HTTP responses, including HTML, JSON, and redirects.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Class Overview](#class-overview)
- [Tests](#tests)
- [Contributing](#contributing)
- [License](#license)

Installation
------------

[](#installation)

To install Easy Response, you can use Composer. Run the following command in your project directory:

```
composer require adaiasmagdiel/easy-response
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

To use Easy Response, you first need to include the library in your project. Then, you can create a new `Response` object and use its methods to set the response body, status code, and headers. Finally, you can send the response using the `send` method.

```
