PHPackages                             therour/your-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. therour/your-json-response

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

therour/your-json-response
==========================

modifier for json response skeleton

0.0.3(7y ago)029[1 issues](https://github.com/therour/your-json-response/issues)MITPHPPHP &gt;=7.0

Since Nov 1Pushed 7y ago1 watchersCompare

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

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

YJResponse - Your Json Response
===============================

[](#yjresponse---your-json-response)

INSTALLATION
------------

[](#installation)

via Composer

```
composer require therour/your-json-response

```

*For Laravel 5.4 and below* Add Service Provider to `config/app.php` of your laravel project

```
'providers' => [
    ...
    Therour\YourJsonResponse\ServiceProvider::class,
]
```

CONFIGURATION
-------------

[](#configuration)

publish configuration file

```
php artisan vendor:publish --provider=Therour\YourJsonResponse\ServiceProvider

```

the configuration file is located at your laravel's config directory by name `yjresponse.php`

USAGE
-----

[](#usage)

this package is bundled with named skeleton `ok`, you can edit the skeleton in config `yjresponse.php`

```
return response()->ok($data, $message = 'success', $code = 200);
// or
return response()->yourNamedSkeleton($data, $message = 'success', $code = 200);
```

### CREATING SKELETON

[](#creating-skeleton)

open configuration file `yjresponse.php`

use `code`, `message`, `data`, `type`, and `meta_page` as value of skeleton to place it

EG:

```
'skeleton' => [
    ...
    // 'created' is the name of skeleton, and its value is the skeleton
    'created' => [
        'status' => [
            'code',
            'message'
        ],
        'result' => 'data'
    ]
],
```

at the same file, also define the default value

```
'defaults' => [
    ...
    'created' => [
        'code' => 201,
        'message' => 'Succesfully create the object'
    ]
]
```

Use your custom skeleton

```
return response()->created($product);
```

*result*

```
{
    "status": {
        "code": 201,
        "message": "Succesfully create the object"
    },
    "result": {
        "name": "Product X",
        "price": 6000,
        "weight": 500
    }
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3

Last Release

2750d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86f52784d71b1c9dd763012ac0c0f5d14e5c45aa2fa79676d3261a24ac813da2?d=identicon)[therour](/maintainers/therour)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[sllh/composer-versions-check

Checks if packages are up to date to last major versions after update

2352.4M16](/packages/sllh-composer-versions-check)[verbb/buttonbox

A collection of utility field types.

8963.7k1](/packages/verbb-buttonbox)[overtrue/php-opencc

中文简繁转换，支持词汇级别的转换、异体字转换和地区习惯用词转换（中国大陆、台湾、香港、日本新字体）。基于 \[BYVoid/OpenCC\](https://github.com/BYVoid/OpenCC) 数据实现。

12130.7k](/packages/overtrue-php-opencc)[opensoft/rollout-bundle

A Symfony2/3/4 Bundle for opensoft/rollout

42122.0k](/packages/opensoft-rollout-bundle)[armincms/json

A Laravel Nova field.

25149.4k3](/packages/armincms-json)

PHPackages © 2026

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