PHPackages                             inthere/jsonapistrategy - 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. inthere/jsonapistrategy

ActiveLibrary[API Development](/categories/api)

inthere/jsonapistrategy
=======================

JSON API strategy for the league/route package

1.0.0(9y ago)1481PHP

Since May 12Pushed 5y ago3 watchersCompare

[ Source](https://github.com/InThere/jsonapistrategy)[ Packagist](https://packagist.org/packages/inthere/jsonapistrategy)[ RSS](/packages/inthere-jsonapistrategy/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

JSONApi strategy
================

[](#jsonapi-strategy)

The [league/route](https://github.com/thephpleague/route) routing package which allows custom strategies. This package provides a custom strategy for compatibility with the [JSONAPI](http://jsonapi.org/) standard.

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

[](#installation)

This package can be used with league/route version 3 or higher. In previous versions the custom strategies aren't enabled.

You can install the package via composer:

`composer require inthere/jsonapistrategy`

Usage
-----

[](#usage)

Set the strategy for the route collection:

```
use InThere\Route\JsonApi\JsonApiStrategy;

$route = new League\Route\RouteCollection();

$route->setStrategy(new JsonApiStrategy());
```

Or use the strategy for individual routes:

```
$route = new League\Route\RouteCollection;

$route->get('/foo', Foo\FooController::bar::class)
    ->setStrategy(new JsonApiStrategy());
```

Tests
-----

[](#tests)

`$ vendor/bin/phpunit`

Contributors
------------

[](#contributors)

Contributions are welcome. We accept contributions via pull requests on Github.

License
-------

[](#license)

The MIT License (MIT). Please see the [License File](LICENSE.md) for more information.

About InThere
-------------

[](#about-inthere)

InThere - "The training Through Gaming Company" - speeds up training your team and change processes by providing a micro-training concept based on serious games.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

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

3285d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd36feb54c17646b5de4b530863e543c378aba5854108be06657e7a515e1572e?d=identicon)[InThere](/maintainers/InThere)

---

Top Contributors

[![dvdheiden](https://avatars.githubusercontent.com/u/90568118?v=4)](https://github.com/dvdheiden "dvdheiden (2 commits)")

---

Tags

jsonapiphprouting

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/inthere-jsonapistrategy/health.svg)

```
[![Health](https://phpackages.com/badges/inthere-jsonapistrategy/health.svg)](https://phpackages.com/packages/inthere-jsonapistrategy)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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