A port for ZF3 of Hounddog's original data-fixture code.

0.0.9 2018-03-06 22:15 UTC


Build Status Coverage Status Scrutinizer Code Quality Percentage of issues still open Average time to resolve an issue


This is a port for ZF3 of Hounddog's orignal code to make fixtures supported in the form of a CLI command.


Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

$ composer require rvdlee-salesupply/doctrine-data-fixture-module

Then open config/application.config.php and add DoctrineModule, DoctrineORMModule and DoctrineDataFixtureModule to your modules

Registering Fixtures

To register fixtures with Doctrine module add the fixtures in your configuration.


return [
    'doctrine' => [
        'fixture' => [
            __NAMESPACE__ . '_fixture' => __DIR__ . '/../src/' . __NAMESPACE__ . '/Fixture',


Command Line

Access the Doctrine command line as following from your project root:

$ ./vendor/bin/doctrine-module data-fixture:import