PHPackages                             coshi/variator-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. [Framework](/categories/framework)
4. /
5. coshi/variator-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

coshi/variator-bundle
=====================

Symfony CoshiVariatorBundle

v0.0.2(9y ago)037MITPHPPHP 7.\*

Since Aug 23Pushed 9y ago8 watchersCompare

[ Source](https://github.com/codesushi/variator-bundle)[ Packagist](https://packagist.org/packages/coshi/variator-bundle)[ RSS](/packages/coshi-variator-bundle/feed)WikiDiscussions master Synced today

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

A Symfony bundle wrapper for coshi/variator library
---------------------------------------------------

[](#a-symfony-bundle-wrapper-for-coshivariator-library)

Allows to specify callbacks with services:

```
    'text' => [
        'type' => 'int',
        'min' => 0,
        'max' => ['@some_service', 'someMethod']

```

Brings new variation type: "iteratorResult" to operate over the Doctrine IterableResult

Usage:

```
    $builder = $container->get('coshi.variator_bundle.builder');

    $config = [
        'id' => [
            'type' => 'iteratorResult',
            'callback' => ['@some_repository', 'getSomeIds'],
        ],
    ];
    $variations = $builder->build($config);

    foreach ($variations as $values) {
        foreach($values as $value) {
            print($value); // displays ids one by one
        }
    }

```

You can strip values to several chunks. Variator will then fetch the data using LIMIT and OFFSET SQL statements:

```
    $builder = $container->get('coshi.variator_bundle.builder');

    $config = [
        'id' => [
            'type' => 'iteratorResult',
            'callback' => ['@some_repository', 'getSomeIds'],
            'chunked' => true,
            'chunk_size' => 100
        ],
    ];
    $variations = $builder->build($config);

    foreach ($variations as $values) {
        foreach($values as $value) {
            print($value); // displays ids one by one, same as in previous
        }
    }

```

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

3497d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/coshi-variator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/coshi-variator-bundle/health.svg)](https://phpackages.com/packages/coshi-variator-bundle)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

605.0M332](/packages/shopware-core)[thelia/thelia

Thelia is an ecommerce CMS.

8715.1k](/packages/thelia-thelia)[devtime/backbone-bundle

Easily setup and use backbone.js with Symfony2

415.8k](/packages/devtime-backbone-bundle)

PHPackages © 2026

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