PHPackages                             fabrizio-cafolla/response-http - 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. fabrizio-cafolla/response-http

Abandoned → [kosmosx/response](/?search=kosmosx%2Fresponse)ArchivedPackage[HTTP &amp; Networking](/categories/http)

fabrizio-cafolla/response-http
==============================

Response service for Symfony &amp; Laravel/Lumen Framework.

1.0.4(6y ago)14171MITPHPPHP &gt;=7.1.3

Since May 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/KosmosX/response)[ Packagist](https://packagist.org/packages/fabrizio-cafolla/response-http)[ RSS](/packages/fabrizio-cafolla-response-http/feed)WikiDiscussions master Synced today

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

Documentation
=============

[](#documentation)

[![](https://camo.githubusercontent.com/b11d48a2868798b81169f053967d1af21fd82a698ad214583a5aba77f1a1f8ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e322d677265656e2e737667)](https://camo.githubusercontent.com/b11d48a2868798b81169f053967d1af21fd82a698ad214583a5aba77f1a1f8ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e322d677265656e2e737667)[![](https://camo.githubusercontent.com/7ce954eee59a501924caff5620cc3b1e0d4bc1defe47e6667f4e8c4a600e5b42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d2533453d372e312d626c75652e737667)](https://camo.githubusercontent.com/7ce954eee59a501924caff5620cc3b1e0d4bc1defe47e6667f4e8c4a600e5b42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d2533453d372e312d626c75652e737667)[![](https://camo.githubusercontent.com/16b3841c7bea46f332c6f8a02d205a0581817d274301957681d043f34bde38a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d2533453d342e322d626c75652e737667)](https://camo.githubusercontent.com/16b3841c7bea46f332c6f8a02d205a0581817d274301957681d043f34bde38a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d2533453d342e322d626c75652e737667)

### Let's go

[](#lets-go)

**Composer**

```
composer require kosmosx/response

require __DIR__ . '/vendor/autoload.php';
$response = new Kosmosx\Response\RestResponse();

$handler = Kosmosx\Response\Exceptions\Handler();
$handler->setExceptionHandler();

```

**use it**

```
$response = new Kosmosx\Response\RestResponse($content, $status, $headers); //constructor
$response = new Kosmosx\Response\Factory\FactoryResponse::success(); //factory

$response->withData(true); //add to json array with key 'data'

```

Example
-------

[](#example)

```
$response->success()
         ->withData(['test' => true])
         ->withData(['test2' => false])
         ->withMessage('Microservice Lumen work')
         ->withState();

//response
{
    "data": {
        "test": true,
        "test2": false
    },
    "messages": "Microservice Lumen work",
    "state": "OK"
}

```

**en**: [documentation](https://github.com/FabrizioCafolla/response-http/wiki/Response-http-documentation)

**it**: [documentazione](https://github.com/FabrizioCafolla/response-http/wiki/Documentazione-response-http)

---

If you find a bug or want to contribute, write to

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

5

Last Release

2516d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86b56131c92d8421d2a54614993c2bf00e91b1265de5b88948fd90d00b986d7e?d=identicon)[Fabrizio Cafolla](/maintainers/Fabrizio%20Cafolla)

---

Top Contributors

[![FabrizioCafolla](https://avatars.githubusercontent.com/u/13237032?v=4)](https://github.com/FabrizioCafolla "FabrizioCafolla (7 commits)")

---

Tags

hateoas-responsehttp-foundationjson-responselaravellaravel-packagelumenlumen-packagepackageresponse-managementrest-apirestful-apisymfonysymfony-apisymfony-bundlehttpresponsesymfonylaravelrestlumen

### Embed Badge

![Health badge](/badges/fabrizio-cafolla-response-http/health.svg)

```
[![Health](https://phpackages.com/badges/fabrizio-cafolla-response-http/health.svg)](https://phpackages.com/packages/fabrizio-cafolla-response-http)
```

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[pusher/pusher-http-laravel

\[DEPRECATED\] A Pusher bridge for Laravel

400509.0k3](/packages/pusher-pusher-http-laravel)[rap2hpoutre/jacky

Opinionated REST JSON HTTP API client for laravel

174.4k](/packages/rap2hpoutre-jacky)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
