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

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

satyakresna/json-response
=========================

Return response to json

0.2(6y ago)229MITPHPPHP &gt;=5.3.0

Since Aug 22Pushed 6y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Response to JSON
================

[](#response-to-json)

[![Latest Stable Version](https://camo.githubusercontent.com/96892fbbe9f9ac2d046484d70a45df46778f901e7395a32db90600d541b6b661/68747470733a2f2f706f7365722e707567782e6f72672f73617479616b7265736e612f6a736f6e2d726573706f6e73652f762f737461626c65)](https://packagist.org/packages/satyakresna/json-response)[![Total Downloads](https://camo.githubusercontent.com/f160807957378b27f9b0c0b4804ff59f0013d0d6140ebeb863227e0cd0b36bd0/68747470733a2f2f706f7365722e707567782e6f72672f73617479616b7265736e612f6a736f6e2d726573706f6e73652f646f776e6c6f616473)](https://packagist.org/packages/satyakresna/json-response)[![Latest Unstable Version](https://camo.githubusercontent.com/7ee666a2dbcbdd6dd0e5919ef9440ef8ebc2a14b6587f53c8ef5e498574df9b9/68747470733a2f2f706f7365722e707567782e6f72672f73617479616b7265736e612f6a736f6e2d726573706f6e73652f762f756e737461626c65)](https://packagist.org/packages/satyakresna/json-response)[![License](https://camo.githubusercontent.com/dd3687a6eee480ea98f60dd5fe72e79695c7a0d65a12dbb5b6ae7bfd7b6a7958/68747470733a2f2f706f7365722e707567782e6f72672f73617479616b7265736e612f6a736f6e2d726573706f6e73652f6c6963656e7365)](https://packagist.org/packages/satyakresna/json-response)

A mini library to convert your response include header status code to JSON. This actually based on [this gist](https://gist.github.com/james2doyle/33794328675a6c88edd6) but I modified parameter position and I want to use it as a library.

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

[](#installation)

```
composer require satyakresna/json-response

```

Usage
-----

[](#usage)

Please find the usage on [sample file](/sample.php)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

2451d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3293cfe74f788bfa4b383aed7015f8f875ed4232584a616725e4a10479bf9c42?d=identicon)[kresnasatya](/maintainers/kresnasatya)

---

Top Contributors

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

---

Tags

personal-projectphp

### Embed Badge

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

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

###  Alternatives

[elements/process-manager-bundle

The Process Manager allows you to manage (define,execute...) arbitrary processes/commands in the Pimcore backend.

49633.0k5](/packages/elements-process-manager-bundle)

PHPackages © 2026

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