PHPackages                             sumwai/yii-fixture-helper - 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. sumwai/yii-fixture-helper

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sumwai/yii-fixture-helper
=========================

FixtureHelper is a command application lets you work with your fixtures outside testing.

089222PHP

Since Mar 19Pushed 12y agoCompare

[ Source](https://github.com/motin/yii-fixture-helper)[ Packagist](https://packagist.org/packages/sumwai/yii-fixture-helper)[ RSS](/packages/sumwai-yii-fixture-helper/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (2)

FixtureHelper for Yii Framework
===============================

[](#fixturehelper-for-yii-framework)

FixtureHelper is a command application lets you work with your fixtures outside testing. Currently what it does is just helping you to load your fixtures from your fixture files to your database, without the need to invoke PHPUnit.

INSTALL
-------

[](#install)

Copy FixtureHelperCommand.php and place it under `vendor/sumwai/yii-fixture-helper`

Edit `protected/config/console.php`, add the following to the config array under first dimension:

```
'commandMap' => array(
	'fixture' => array(
	'class'=>'vendor.sumwai.yii-fixture-helper.FixtureHelperCommand',
	),
),

```

Configure your database by setting up your db under `components`.

Add the following inside `components`.

```
'fixture-helper'      => array(
    'class' => 'vendor.sumwai.yii-fixture-helper.FixtureHelperDbFixtureManager',
),

```

USAGE
-----

[](#usage)

fixture load \[--modelPathAlias=folderalias\] \[--fixturePathAlias=folderalias\] --table=tablename1\[,tablename2\[,...\]\]

PARAMETERS
----------

[](#parameters)

- load: Load fixtures into the database
- --modelPathAlias: The alias to the directory that contains the "model" folder Please note that folder "models" should contain the Model class of the fixtures to be loaded. Defaults to "application.models". Optional for "load".
- --fixturePathAlias: The alias to the "fixtures" directory
- --tables: Name of the tables to be loaded with your defined fixtures. Name values are comma separated. Required for "load".

EXAMPLES
--------

[](#examples)

yiic fixture load --modelPathAlias=application.modules.mymodule.models --fixturePathAlias=application.modules.mymodule.tests.fixtures --tables=fruit,transport,country

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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.

### Community

Maintainers

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

---

Top Contributors

[![motin](https://avatars.githubusercontent.com/u/793037?v=4)](https://github.com/motin "motin (5 commits)")[![stereochrome](https://avatars.githubusercontent.com/u/812066?v=4)](https://github.com/stereochrome "stereochrome (1 commits)")

### Embed Badge

![Health badge](/badges/sumwai-yii-fixture-helper/health.svg)

```
[![Health](https://phpackages.com/badges/sumwai-yii-fixture-helper/health.svg)](https://phpackages.com/packages/sumwai-yii-fixture-helper)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

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

PHPackages © 2026

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