PHPackages                             qpautrat/woohoolabs-yin-bundle - 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. qpautrat/woohoolabs-yin-bundle

ActiveSymfony-bundle[API Development](/categories/api)

qpautrat/woohoolabs-yin-bundle
==============================

Implements woohoolabs/yin framework into Symfony

6.0.0(6y ago)542.6k↓33.3%6[1 PRs](https://github.com/qpautrat/woohoolabs-yin-bundle/pulls)MITPHPPHP ^7.1.0

Since Mar 23Pushed 4y ago2 watchersCompare

[ Source](https://github.com/qpautrat/woohoolabs-yin-bundle)[ Packagist](https://packagist.org/packages/qpautrat/woohoolabs-yin-bundle)[ RSS](/packages/qpautrat-woohoolabs-yin-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (16)Used By (0)

QPWoohoolabsYinBundle for Symfony
=================================

[](#qpwoohoolabsyinbundle-for-symfony)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7c955be9535bd9be88ae1aad02768918b55f392fe54058d4957a94b751870311/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f71706175747261742f776f6f686f6f6c6162732d79696e2d62756e646c652e737667)](https://packagist.org/packages/qpautrat/woohoolabs-yin-bundle)

This bundle implements [woohoolabs/yin](https://github.com/woohoolabs/yin) library into Symfony framework.

Note: `5.x` is for Yin `4.x`, `4.x` is for Yin `3.x` and `3.x` is for Yin `0.11`

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

[](#installation)

```
$ composer require qpautrat/woohoolabs-yin-bundle
```

Then for Symfony 3.x and before, like for any other bundle, include it in your Kernel class:

```
public function registerBundles()
{
    $bundles = array(
        // ...

        new QP\WoohoolabsYinBundle\QPWoohoolabsYinBundle(),
    );

    // ...
}
```

Symfony 4+ will automatically register the bundle.

Configuration
-------------

[](#configuration)

By default `jsonApi` class is intialized with Yin's [`ExceptionFactory`](https://github.com/woohoolabs/yin#exceptions). You can provide your own factory implementation. To do that you have to define which service to use in your global configuration like this:

```
qp_woohoolabs_yin:
    exception_factory: my_exception_factory_service
```

Usage
-----

[](#usage)

Configure service binding:

```
services:
    _defaults:
        #...
        bind:
            WoohooLabs\Yin\JsonApi\JsonApi: '@qp_woohoolabs_yin.json_api'
```

Then you can use `qp_woohoolabs_yin.json_api` service by injecting it in the constructor:

```
namespace App\Controller;

use Psr\Http\Message\ResponseInterface;
use WoohooLabs\Yin\JsonApi\JsonApi;

class DefaultController
{
    /**
     * @var JsonApi
     */
    private $jsonApi;

    public function __construct(JsonApi $jsonApi)
    {
        $this->jsonApi = $jsonApi;
    }

    public function index(): ResponseInterface
    {
        return $this->jsonApi->respond()->ok(new HelloDocument(), 'hello');
    }
}
```

Or in the action method directly:

```
namespace App\Controller;

use Psr\Http\Message\ResponseInterface;
use WoohooLabs\Yin\JsonApi\JsonApi;

class DefaultController
{
    public function index(JsonApi $jsonApi): ResponseInterface
    {
        return $jsonApi->respond()->ok(new HelloDocument(), 'hello');
    }
}
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~97 days

Recently: every ~40 days

Total

15

Last Release

2332d ago

Major Versions

1.0.0 → 2.0.02016-04-20

2.0.0 → 3.0.02017-05-03

3.1.0 → 4.0.02018-01-19

4.3.0 → 5.0.02019-07-16

5.1.1 → 6.0.02019-12-23

PHP version history (3 changes)1.0.0PHP &gt;=5.4

3.1.0PHP &gt;=5.5

4.0.0PHP ^7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/64dab43fa690b29b84f81efa89ccbfa2a62a74616a2ea80104807a8dd4ef177b?d=identicon)[qpautrat](/maintainers/qpautrat)

---

Top Contributors

[![qpautrat](https://avatars.githubusercontent.com/u/1844413?v=4)](https://github.com/qpautrat "qpautrat (12 commits)")[![moafred](https://avatars.githubusercontent.com/u/1343723?v=4)](https://github.com/moafred "moafred (4 commits)")[![Doqnach](https://avatars.githubusercontent.com/u/25537191?v=4)](https://github.com/Doqnach "Doqnach (3 commits)")[![Pol-Valentin](https://avatars.githubusercontent.com/u/2620286?v=4)](https://github.com/Pol-Valentin "Pol-Valentin (2 commits)")

---

Tags

symfonyJSON-API

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/qpautrat-woohoolabs-yin-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/qpautrat-woohoolabs-yin-bundle/health.svg)](https://phpackages.com/packages/qpautrat-woohoolabs-yin-bundle)
```

###  Alternatives

[paknahad/jsonapi-bundle

The jsonapi-bundle is a Symfony bundle. it is the fastest way to generate API based on JsonApi.org using woohoolabs/yin

7155.8k4](/packages/paknahad-jsonapi-bundle)[cloudcreativity/laravel-json-api

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

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

Framework agnostic JSON API (jsonapi.org) implementation

7373.6M27](/packages/neomerx-json-api)[openai-php/symfony

Symfony Bundle for OpenAI

215715.5k3](/packages/openai-php-symfony)[thecodingmachine/graphqlite-bundle

A Symfony bundle for thecodingmachine/graphqlite.

371.6M3](/packages/thecodingmachine-graphqlite-bundle)[onmoon/openapi-server-bundle

Symfony bundle to create a fully-featured API server from an OpenAPI v3 specification

1117.7k](/packages/onmoon-openapi-server-bundle)

PHPackages © 2026

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