PHPackages                             xsolve-pl/model-factory-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. [HTTP &amp; Networking](/categories/http)
4. /
5. xsolve-pl/model-factory-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

xsolve-pl/model-factory-bundle
==============================

This bundle provides a versatile skeleton for organizing model factories.

v2.0.4(3y ago)1353.4k↓50%7[1 issues](https://github.com/xsolve-pl/xsolve-model-factory-bundle/issues)[1 PRs](https://github.com/xsolve-pl/xsolve-model-factory-bundle/pulls)MITPHPPHP ^5.6|^7.0|^8.0CI failing

Since Aug 18Pushed 3y ago59 watchersCompare

[ Source](https://github.com/xsolve-pl/xsolve-model-factory-bundle)[ Packagist](https://packagist.org/packages/xsolve-pl/model-factory-bundle)[ Docs](http://github.com/xsolve-pl/xsolve-model-factory-bundle)[ RSS](/packages/xsolve-pl-model-factory-bundle/feed)WikiDiscussions master Synced 1mo ago

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

[![Build Status](https://camo.githubusercontent.com/228c40503c24fab02439d17e92e794767d2c37a40061c869f5d0a780f1b21c4f/68747470733a2f2f7472617669732d63692e6f72672f78736f6c76652d706c2f78736f6c76652d6d6f64656c2d666163746f72792d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/xsolve-pl/xsolve-model-factory-bundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/db1bba26228851066d425a3da89ad0ff2c0724dfb04ff8175dd3a1ef8b77d430/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f78736f6c76652d706c2f78736f6c76652d6d6f64656c2d666163746f72792d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xsolve-pl/xsolve-model-factory-bundle/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/6c7b1b0f0ae38017f198c3842f15791e58f0f7a389fd789e1889ce014d242db4/68747470733a2f2f706f7365722e707567782e6f72672f78736f6c76652d706c2f6d6f64656c2d666163746f72792d62756e646c652f762f737461626c65)](https://packagist.org/packages/xsolve-pl/model-factory-bundle)[![Total Downloads](https://camo.githubusercontent.com/47ab0f1af82afe1842307ecf0321c3bd6fc06244513de8fa850d4ba9f50da13e/68747470733a2f2f706f7365722e707567782e6f72672f78736f6c76652d706c2f6d6f64656c2d666163746f72792d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/xsolve-pl/model-factory-bundle)[![Monthly Downloads](https://camo.githubusercontent.com/a29dc7bc9f4f8292ae0de6a2b6aafa9a83473e7287d8b43f7e86b2f15c6fd07b/68747470733a2f2f706f7365722e707567782e6f72672f78736f6c76652d706c2f6d6f64656c2d666163746f72792d62756e646c652f642f6d6f6e74686c79)](https://packagist.org/packages/xsolve-pl/model-factory-bundle)[![License](https://camo.githubusercontent.com/67569c10a49fd714f39c95af9daaeb44c1fe2438c4e3dde71b7f8f237b88b877/68747470733a2f2f706f7365722e707567782e6f72672f78736f6c76652d706c2f6d6f64656c2d666163746f72792d62756e646c652f6c6963656e7365)](https://packagist.org/packages/xsolve-pl/model-factory-bundle)

Table of contents
=================

[](#table-of-contents)

- [Introduction](#introduction)
- [License](#license)
- [Getting started](#getting-started)
- [Usage examples](#usage-examples)
    - [Grouping model factories into collections](#grouping-model-factories-into-collections)

Introduction
============

[](#introduction)

This bundle wraps [xsolve-pl/model-factory](https://packagist.org/packages/xsolve-pl/model-factory)library and allows to compose collections of model factories declared as services with the use of tags.

See the library documentation for more details on specific use cases.

License
=======

[](#license)

This bundle is under the MIT license. See the complete license in `LICENSE` file.

Getting started
===============

[](#getting-started)

Include this bundle in your Symfony project using Composer as follows (assuming it is installed globally):

```
$ composer require xsolve-pl/model-factory-bundle
```

For more information on Composer see its [Introduction](https://getcomposer.org/doc/00-intro.md).

Afterwards you need to enable this bundle by adding a line to `app/AppKernel.php`file of your project:

```

```

This snippet defines two model factory collections (with ids `example.model_factory_collection.first` and `example.model_factory_collection.second` respectively). It also defines a single model factory (with id `example.model_factory.foo`). This service has a tag assigned with `name` attribute equal `xsolve.model_factory_bundle.model_factory` (which will result in it being processed by `Xsolve\ModelFactoryBundle\DependencyInjection\CompilerPass\ModelFactoryCollectionCompilerPass`) and `model-factory-collection-id` attribute containing service ids of respective collections.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 54.9% 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 ~168 days

Recently: every ~428 days

Total

15

Last Release

1204d ago

Major Versions

v1.0.9 → v2.0.02018-05-17

PHP version history (3 changes)v1.0.0PHP ^5.6|^7.0

v1.0.6PHP &gt;=5.6.0

v2.0.3PHP ^5.6|^7.0|^8.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/09183c33618505e4ae21c86f3d4ffce6eaf2417fc15896c1f8db6b3c62be064f?d=identicon)[mariusz-bak-xsolve-pl](/maintainers/mariusz-bak-xsolve-pl)

---

Top Contributors

[![malef](https://avatars.githubusercontent.com/u/371552?v=4)](https://github.com/malef "malef (28 commits)")[![mariusz-bak-xsolve-pl](https://avatars.githubusercontent.com/u/1810317?v=4)](https://github.com/mariusz-bak-xsolve-pl "mariusz-bak-xsolve-pl (15 commits)")[![blahy](https://avatars.githubusercontent.com/u/1292174?v=4)](https://github.com/blahy "blahy (6 commits)")[![Emiosy](https://avatars.githubusercontent.com/u/37106639?v=4)](https://github.com/Emiosy "Emiosy (2 commits)")

---

Tags

rest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xsolve-pl-model-factory-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/xsolve-pl-model-factory-bundle/health.svg)](https://phpackages.com/packages/xsolve-pl-model-factory-bundle)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[willdurand/hateoas-bundle

Integration of Hateoas into Symfony2.

29815.2M48](/packages/willdurand-hateoas-bundle)[noxlogic/ratelimit-bundle

This bundle provides functionality to limit calls to actions based on rate limits

3363.1M7](/packages/noxlogic-ratelimit-bundle)[handcraftedinthealps/rest-routing-bundle

This bundle provides automatic route registration for the Controllers

582.0M2](/packages/handcraftedinthealps-rest-routing-bundle)

PHPackages © 2026

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