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 1mo ago

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 32% 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

3546d 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/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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