PHPackages                             browomir/standardized-json-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. browomir/standardized-json-response

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

browomir/standardized-json-response
===================================

Simple class to prepare standardized JSON response based on JSend specification

1.0.0(10y ago)038MITPHP

Since Nov 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Browomir/standardized-json-response)[ Packagist](https://packagist.org/packages/browomir/standardized-json-response)[ RSS](/packages/browomir-standardized-json-response/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Standardized Json Response
==========================

[](#standardized-json-response)

Simple class to prepare standardized JSON response based on [JSend](http://labs.omniti.com/labs/jsend) specification

Installation
============

[](#installation)

The preferred way to install this class is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require browomir/standardized-json-response "dev-master"
```

or add

```
// composer.json
{
    "require": {
        "browomir/standardized-json-response": "dev-master"
    }
}
```

to the require section of your `composer.json` file.

Usage
=====

[](#usage)

This simple example show how you can use this class:

```
require_once 'vendor/autoload.php';

use StandardizedJsonResponse\Response;

$response = new Response();
$response->setStatus(Response::STATUS_SUCCESS);
$response->setData(
    array(
        'lorem' => 'ipsum'
    )
);
$response->setMessage('The message');

echo $response->getEncodedResponse();
```

[![Build Status](https://camo.githubusercontent.com/3801996e68fc478e697dcbeb7f0a65483671fef1d89b6d250075e09cfc31d895/68747470733a2f2f7472617669732d63692e6f72672f42726f776f6d69722f7374616e64617264697a65642d6a736f6e2d726573706f6e73652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Browomir/standardized-json-response)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/64f72ce11e9fed56a329583f7c258f6edf8607262d6c0a9529f66574473408ad/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f42726f776f6d69722f7374616e64617264697a65642d6a736f6e2d726573706f6e73652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Browomir/standardized-json-response/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/702f35726140b37c0a66cc3dc1766d8e101683736d7dfa7fbb8f4b718cbf46bd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f42726f776f6d69722f7374616e64617264697a65642d6a736f6e2d726573706f6e73652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Browomir/standardized-json-response/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/a3d3407c48e619450a27cf611b6e8d09ecb1883fbc35b8952483ad764c55293b/68747470733a2f2f706f7365722e707567782e6f72672f62726f776f6d69722f7374616e64617264697a65642d6a736f6e2d726573706f6e73652f762f737461626c65)](https://packagist.org/packages/browomir/standardized-json-response)[![Latest Unstable Version](https://camo.githubusercontent.com/c656109d59469d7847c9c59b2031f952201aaad9a0e81391233f3718bc0f4ecb/68747470733a2f2f706f7365722e707567782e6f72672f62726f776f6d69722f7374616e64617264697a65642d6a736f6e2d726573706f6e73652f762f756e737461626c65)](https://packagist.org/packages/browomir/standardized-json-response)[![Dependency Status](https://camo.githubusercontent.com/268e2648d27321b36e61cbb16d9dc177ca9a18fb4cdb183fb7d600fdae95491c/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536343631393137623562303364303031663030303831622f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/56461917b5b03d001f00081b)[![Total Downloads](https://camo.githubusercontent.com/c496cadfeffe40225742cd35f9ff8f01ccb32526532a3962f51dc082679ad4e6/68747470733a2f2f706f7365722e707567782e6f72672f62726f776f6d69722f7374616e64617264697a65642d6a736f6e2d726573706f6e73652f646f776e6c6f616473)](https://packagist.org/packages/browomir/standardized-json-response)[![License](https://camo.githubusercontent.com/efa9e9849855353f2afdced5083f1777b789d29498b71de4d160b6001c2216c5/68747470733a2f2f706f7365722e707567782e6f72672f62726f776f6d69722f7374616e64617264697a65642d6a736f6e2d726573706f6e73652f6c6963656e7365)](https://packagist.org/packages/browomir/standardized-json-response)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

3893d ago

### Community

Maintainers

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

---

Top Contributors

[![Browomir](https://avatars.githubusercontent.com/u/10349149?v=4)](https://github.com/Browomir "Browomir (19 commits)")

---

Tags

responsejsonclassjsend

### Embed Badge

![Health badge](/badges/browomir-standardized-json-response/health.svg)

```
[![Health](https://phpackages.com/badges/browomir-standardized-json-response/health.svg)](https://phpackages.com/packages/browomir-standardized-json-response)
```

###  Alternatives

[nannehuiges/jsend

A simple PHP implementation of the JSend specification.

31388.5k2](/packages/nannehuiges-jsend)

PHPackages © 2026

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