PHPackages                             phuongdanh/simple-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. [API Development](/categories/api)
4. /
5. phuongdanh/simple-response

ActiveLibrary[API Development](/categories/api)

phuongdanh/simple-response
==========================

This package is used to wrap your response data. It supports for laravel as well

v1.1.1(3y ago)3191MITPHP

Since Dec 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/phuongdanh/simple-response)[ Packagist](https://packagist.org/packages/phuongdanh/simple-response)[ RSS](/packages/phuongdanh-simple-response/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

simple-response
===============

[](#simple-response)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/7370d01613d6bed09f8640effe0e970ee4fa9501d8f4417680222c040d9cb177/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068756f6e6764616e682f73696d706c652d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phuongdanh/simple-response)

Simple package to handle response properly in your API. This package does not include any dependency.

Install
-------

[](#install)

Via Composer

```
$ composer require phuongdanh/simple-response
```

Requirements
------------

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 5.6
- PHP 7.0
- PHP 7.1
- PHP 7.2
- PHP 8.x

### How to use it?

[](#how-to-use-it)

```
// Use namespace
use SimpleResponse\Response;

// response with default data type based on Accept value in request's header
return Response::default($your_data);

// response as application/json
return Response::json($your_data);

// response as text/xml
return Response::xml($your_data);
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/ellipsesynergie/api-response/blob/master/LICENSE) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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 ~153 days

Total

3

Last Release

1308d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eed41afb5d0e9e2b3b45cd672834282cbc4cc1556bae271db396884c071e8c0b?d=identicon)[phuongdanh](/maintainers/phuongdanh)

---

Top Contributors

[![danh-terra-drone](https://avatars.githubusercontent.com/u/86274736?v=4)](https://github.com/danh-terra-drone "danh-terra-drone (10 commits)")

---

Tags

jsonapixml

### Embed Badge

![Health badge](/badges/phuongdanh-simple-response/health.svg)

```
[![Health](https://phpackages.com/badges/phuongdanh-simple-response/health.svg)](https://phpackages.com/packages/phuongdanh-simple-response)
```

###  Alternatives

[nathanmac/parser

Simple PHP Parser Utility Library for API Development

2151.0M3](/packages/nathanmac-parser)[cloudcreativity/json-api-testing

PHPUnit test helpers to check JSON API documents.

141.6M3](/packages/cloudcreativity-json-api-testing)[nilportugues/api-problems

PSR7 Response implementation for the Problem Details for HTTP APIs

1749.4k2](/packages/nilportugues-api-problems)[dragon-code/laravel-json-response

Automatically always return a response in JSON format

1118.6k1](/packages/dragon-code-laravel-json-response)[wayofdev/laravel-symfony-serializer

📦 Laravel wrapper around Symfony Serializer.

2113.6k](/packages/wayofdev-laravel-symfony-serializer)

PHPackages © 2026

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