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

ActiveLibrary[API Development](/categories/api)

kars/json-response
==================

Returns json format when this package gives value and data properties

1.0.0(4y ago)04MITPHPPHP &gt;=5.3.0

Since Oct 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MehmetCanak/json-response-package)[ Packagist](https://packagist.org/packages/kars/json-response)[ Docs](https://github.com/MehmetCanak/json-response-package)[ RSS](/packages/kars-json-response/feed)WikiDiscussions main Synced 1mo ago

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

json-response-package
=====================

[](#json-response-package)

Returns json format when this package gives value and data properties

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

[](#installation)

composer require kars/json-response

### Use

[](#use)

```

require_once "vendor/autoload.php";

$test= [
    'name'  =>  'mehmet',
    'email' =>  'mehmetcanak99@gmail.com',
];

new \Kars\JsonResponse\Response('ok', '', $test);

```

### Params (required)

[](#params-required)

1. success or ok - 200 http status
2. unauthorized - 401 http status
3. exception - 500 http status

### Response

[](#response)

```
{
 "status":"ok",
 "data":
    {
      "name":"mehmet",
      "email":"mehmetcanak99@gmail.com"
    }
}

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

1668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/486da8a6e4c623c9d7377e6f16407ae23efcd8939a008adbb3f56e5fdfb8b087?d=identicon)[mehmetcanak](/maintainers/mehmetcanak)

---

Top Contributors

[![MehmetCanak](https://avatars.githubusercontent.com/u/15331775?v=4)](https://github.com/MehmetCanak "MehmetCanak (16 commits)")

---

Tags

jsonapijsonapistandard

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cloudcreativity/laravel-json-api

JSON API (jsonapi.org) support for Laravel applications.

7881.1M5](/packages/cloudcreativity-laravel-json-api)[nilportugues/laravel5-json-api

Laravel 5 JSON API Transformer Package

31232.4k1](/packages/nilportugues-laravel5-json-api)[nilportugues/jsonapi-bundle

Symfony 2 &amp; 3 JSON API Transformer Package

11446.0k](/packages/nilportugues-jsonapi-bundle)[nilportugues/json-api

Serializer transformers outputting valid API responses in JSON, JSON API and HAL+JSON API formats.

70106.2k3](/packages/nilportugues-json-api)[alsvanzelf/jsonapi

Human-friendly library to implement JSON:API without needing to know the specification.

54150.0k5](/packages/alsvanzelf-jsonapi)[cloudcreativity/json-api-testing

PHPUnit test helpers to check JSON API documents.

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

PHPackages © 2026

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