PHPackages                             cristianp6/slim-json-api-helper - 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. cristianp6/slim-json-api-helper

ActiveLibrary[API Development](/categories/api)

cristianp6/slim-json-api-helper
===============================

Slim3 JSON API Request &amp; Response Helper inspired by jsonapi.org

2.0.1(10y ago)189Apache-2.0PHPPHP &gt;=5.5

Since Jan 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/cristianp6/slim-json-api-helper)[ Packagist](https://packagist.org/packages/cristianp6/slim-json-api-helper)[ Docs](https://github.com/cristianp6/slim-json-api-helper)[ RSS](/packages/cristianp6-slim-json-api-helper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

slim-json-api-helper
====================

[](#slim-json-api-helper)

[![Latest Stable Version](https://camo.githubusercontent.com/3dd7fc8182a6893e8176ce385c2f30a21957fc6971db87c4f6938f3946bd194b/68747470733a2f2f706f7365722e707567782e6f72672f637269737469616e70362f736c696d2d6a736f6e2d6170692d68656c7065722f76657273696f6e2e706e67)](https://packagist.org/packages/cristianp6/slim-json-api-helper)[![Composer Downloads](https://camo.githubusercontent.com/2d42d6c9d170dff5aa8c70f8ea617dc0f77f106580a0c09d2dafd24f184bce5b/68747470733a2f2f706f7365722e707567782e6f72672f637269737469616e70362f736c696d2d6a736f6e2d6170692d68656c7065722f642f746f74616c2e706e67)](https://packagist.org/packages/cristianp6/slim-json-api-helper)[![Build Status](https://camo.githubusercontent.com/9f530a56af572fcdaf16a0059db60cf0aaf725b4a429d6b4ff3c557317c59568/68747470733a2f2f7472617669732d63692e6f72672f637269737469616e70362f736c696d2d6a736f6e2d6170692d68656c7065722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/cristianp6/slim-json-api-helper)[![License](https://camo.githubusercontent.com/efafaeef50d8b4075025b18ca78fc1a50588e0934d7eaf40620c22864c2b9ab1/68747470733a2f2f706f7365722e707567782e6f72672f637269737469616e70362f736c696d2d6a736f6e2d6170692d68656c7065722f6c6963656e73652e737667)](https://packagist.org/packages/cristianp6/slim-json-api-helper)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.5

Usage
-----

[](#usage)

```
use Slim\Http\Request as Request;
use JsonApiHelper\Renderer;

$app = new \Slim\App($settings);
$container = $app->getContainer();

// register the json response and error handlers
$jsonApiHelper = new JsonApiHelper\JsonApiHelper($app->getContainer());
$jsonApiHelper->registerResponseResult();
$jsonApiHelper->registerErrorHandlers();

$this->post('/users', function (Request $request, Response $response, $args)
{
    $user_id = $request->getParam('user_id');

    $this->result->data = [
        'user_id' => $user_id
    ];

    $response = $this->result->render($response, 200);
    return $response;

  });
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 69.2% 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 ~8 days

Total

3

Last Release

3758d ago

Major Versions

1.0.0 → 2.0.02016-01-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/53147aa05537edf91ba5a50cb68b9a4c4d712a5fab72f0917120eb5dc664914a?d=identicon)[cristianp6](/maintainers/cristianp6)

---

Top Contributors

[![cristianp6](https://avatars.githubusercontent.com/u/233734?v=4)](https://github.com/cristianp6 "cristianp6 (9 commits)")[![aporat](https://avatars.githubusercontent.com/u/415576?v=4)](https://github.com/aporat "aporat (3 commits)")[![masrodjie](https://avatars.githubusercontent.com/u/2186593?v=4)](https://github.com/masrodjie "masrodjie (1 commits)")

---

Tags

jsonapislim

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cristianp6-slim-json-api-helper/health.svg)

```
[![Health](https://phpackages.com/badges/cristianp6-slim-json-api-helper/health.svg)](https://phpackages.com/packages/cristianp6-slim-json-api-helper)
```

###  Alternatives

[cloudcreativity/json-api-testing

PHPUnit test helpers to check JSON API documents.

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

Unofficial API client for the Swedbank's and Sparbanken's mobile apps in Sweden.

752.5k](/packages/walle89-swedbank-json)[wayofdev/laravel-symfony-serializer

📦 Laravel wrapper around Symfony Serializer.

2113.6k](/packages/wayofdev-laravel-symfony-serializer)[scrumptious/slagger

Slim middleware for generating Swagger json for use with Swagger UI

101.2k](/packages/scrumptious-slagger)

PHPackages © 2026

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