PHPackages                             voltel/extra-foundry-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. [Testing &amp; Quality](/categories/testing)
4. /
5. voltel/extra-foundry-bundle

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

voltel/extra-foundry-bundle
===========================

Extra features that make zenstruck/foundry work faster by postponed persistence and aggregated flush

v1.3.0(5y ago)04MITPHPPHP ^7.4

Since Apr 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/voltel/extra-foundry-bundle)[ Packagist](https://packagist.org/packages/voltel/extra-foundry-bundle)[ RSS](/packages/voltel-extra-foundry-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (9)Versions (5)Used By (0)

VoltelExtraFoundryBundle
------------------------

[](#voltelextrafoundrybundle)

This bundle is a wrapper for [zenstruck/foundry](https://github.com/zenstruck/foundry) bundle.

It features:

- **delayed persistence** to save time during development database seeding;
- MySQL **dump file loader** to re-create initial database state in "test" environment and minimize testing time;
- a set-up service to **create entities from *blueprints***which is a convenience tool to use in tests (e.g. with data providers) or while seeding the database in "dev" environment;
- a number of "improvements" on the way [zenstruck/foundry](https://github.com/zenstruck/foundry)does things.

Documentation
=============

[](#documentation)

Read the docs at .

Source files for documentation live in the **"docs/"** folder of the bundle in **reStructuredText** format files (\*.rst).

Usage
=====

[](#usage)

For usage examples, [read the docs](https://voltelextrafoundrybundle.readthedocs.io/en/latest/)and see the source code in the testing suite (in "test/Setup" directory of the bundle).

Seeding the development database:
---------------------------------

[](#seeding-the-development-database)

```
    $order_entity = $this->persistService->createOne($factory_order,
        ['customer' => $customer_entity],
        ['sent']
    );

    $order_item_batch = $this->persistService->createMany($factory_order_item, rand(1, 4), function() {
        return [
            'unitCount' => rand(1, 20)
        ];
    });
```

Creating entities from *blueprint*:
-----------------------------------

[](#creating-entities-from-blueprint)

```
        $a_setup_customers = [
            'customer_1' =>['states' => ['american', 'human']],
            'customer_2' =>['states' => ['ukrainian', 'human'],
            'customer_3' =>['states' => ['human'], 'attributes' => ['firstName' => 'John', 'lastName' => 'Doe']],
            'customer_4' =>['states' => ['human'], 'attributes' => ['firstName' => 'Богдан', 'lastName' => 'Мірошник']],
        ];

        $this->setUpFixtureEntityService-> createEntities($factory_customer, $a_setup_customers, true);
```

Load Global State from MySQL dump file:
---------------------------------------

[](#load-global-state-from-mysql-dump-file)

```
    class GlobalStory extends Story
    {
        //...

        public function build(): void
        {
            $this->sqlDumpLoaderService->loadSqlDump();
        }
    }
```

You will find many more [examples in the docs](https://voltelextrafoundrybundle.readthedocs.io/en/latest/)and in the "tests/" directory of the bundle.

Contributing
============

[](#contributing)

```
Of course, open source is fueled by everyone's ability to give just a little bit
of their time for the greater good. If you'd like to see a feature or add some of
your *own* happy words, awesome! You can request it - but creating a pull request
is an even better way to get things done.

Either way, please feel comfortable submitting issues or pull requests: all contributions
and questions are warmly appreciated :).

```

That beeing said, you may find it more appropriate to **contribute to the zenstruck/foundry project** itself, as this bundle is only a convenience wrapper.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

1845d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/113125?v=4)[Ryan](/maintainers/volt)[@Volt](https://github.com/Volt)

---

Top Contributors

[![voltel](https://avatars.githubusercontent.com/u/17889468?v=4)](https://github.com/voltel "voltel (4 commits)")

---

Tags

testingtestdevdatabasemysqldevelopmentseedingentitiespopulatefoundry

### Embed Badge

![Health badge](/badges/voltel-extra-foundry-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/voltel-extra-foundry-bundle/health.svg)](https://phpackages.com/packages/voltel-extra-foundry-bundle)
```

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8017.0M43](/packages/orchestra-workbench)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)[guanguans/laravel-soar

SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。

2227.8k](/packages/guanguans-laravel-soar)[sofa/eloquent-testsuite

Helpers for fast and reliable UNIT tests for your Eloquent Models with PHPUnit

10104.7k](/packages/sofa-eloquent-testsuite)

PHPackages © 2026

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