PHPackages                             exbico/jsend-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. exbico/jsend-response

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

exbico/jsend-response
=====================

JSend implementation in php

2.0.1(5y ago)09.6k[1 PRs](https://github.com/exbico/jsend-response/pulls)MITPHPPHP &gt;=7.1

Since Apr 4Pushed 3y ago2 watchersCompare

[ Source](https://github.com/exbico/jsend-response)[ Packagist](https://packagist.org/packages/exbico/jsend-response)[ Docs](https://bitbucket.org/exbico/jsendresponse)[ RSS](/packages/exbico-jsend-response/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

\#Library for JSend

You can find out more information about JSend [here](https://labs.omniti.com/labs/jsend).

How to use
----------

[](#how-to-use)

```
$response = new Response();
$response->setMessage('the message');
$response->setStatus(Response::ERROR);

$data = ['id' => 1];
$response->setData($data);

$newData = ['name' => 'User'];
$response->addData($newData);

$response->setVersion('v1');

echo $response;
```

When you print out your object, you'll get something like this:

```
{"status":"error","message":"the message","version":"v1","data":{"id":1,"name":"User"}}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~447 days

Total

7

Last Release

1116d ago

Major Versions

1.0.3 → 2.0.02020-05-28

2.0.1 → v3.x-dev2023-04-23

PHP version history (4 changes)1.0.0PHP &gt;= 5.4.0

1.0.3PHP &gt;= 7.0.0

2.0.0PHP &gt;=7.1

v3.x-devPHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bfae1243a72753474bdf74fc532d06c06b49499e4ec689986c0c58c1c6cdf80?d=identicon)[Exbico](/maintainers/Exbico)

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

---

Top Contributors

[![AxelPAL](https://avatars.githubusercontent.com/u/3734332?v=4)](https://github.com/AxelPAL "AxelPAL (6 commits)")

---

Tags

jsend

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/exbico-jsend-response/health.svg)

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

###  Alternatives

[friendsoftypo3/dashboard

Dashboard for TYPO3

183.9k](/packages/friendsoftypo3-dashboard)

PHPackages © 2026

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