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.9k↓80%6[1 issues](https://github.com/qpautrat/woohoolabs-yin-bundle/issues)[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 2d 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

35

—

LowBetter than 77% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity31

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

2384d 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

[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60216.0M85](/packages/mollie-mollie-api-php)[cloudcreativity/laravel-json-api

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

7851.1M5](/packages/cloudcreativity-laravel-json-api)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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