PHPackages                             evopix/minion-database - 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. [Database &amp; ORM](/categories/database)
4. /
5. evopix/minion-database

AbandonedArchivedKohana-module[Database &amp; ORM](/categories/database)

evopix/minion-database
======================

Database migration and seeder for Kohana's Minion task runner.

061PHP

Since Apr 2Pushed 12y ago1 watchersCompare

[ Source](https://github.com/evopix/minion-database)[ Packagist](https://packagist.org/packages/evopix/minion-database)[ RSS](/packages/evopix-minion-database/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Database migration and seeder for Kohana's Minion task runner.
==============================================================

[](#database-migration-and-seeder-for-kohanas-minion-task-runner)

---

- [Introduction](#introduction)
- [Creating Migrations](#creating-migrations)
- [Running Migrations](#running-migrations)
- [Rolling Back Migrations](#rollback)
- [Database Seeding](#database-seeding)

Introduction
------------

[](#introduction)

The Minion Database module provides a database agnostic way of modifying the database schema and staying up to date on the current schema state.

Creating Migrations
-------------------

[](#creating-migrations)

To create a migration, you may use the `migration:make` task on the Minion CLI:

```
minion migration:make --group=foo

```

The migration will be placed in the `application/database/migrations/foo` directory, and the file name will be a timestamp.

You may also specify a `--description` option when creating a migration to provide context. The description will be appended to the migration filename and included in the migration class comment.

```
minion migration:make --group=foo --description="Creating foo table"

```

Running Migrations
------------------

[](#running-migrations)

Running all required migrations:

```
minion db:migrate

```

Running all required migrations for a specific group:

```
minion db:migrate --group=foo

```

Running all required migrations for a multiple groups:

```
minion db:migrate --group=foo,bar

```

Running a specific migration:

```
minion db:migrate --to=20140327143111

```

Running the next `n` migrations:

```
minion db:migrate --to=+3

```

Rolling Back Migrations
-----------------------

[](#rolling-back-migrations)

Rolling back the last migration:

```
minion db:migrate --to=-1

```

Rolling back to a specific migration:

```
minion db:migrate --to=20140327143111

```

Rolling back the last `n` migrations:

```
minion db:migrate --to=-3

```

Database Seeding
----------------

[](#database-seeding)

This module also includes a simple way to seed your database with test data using seed classes. All seed classes are stored in `application/database/seeds`. Seed classes are split into groups just like migrations and may have any name you wish, but probably should follow some sensible convention, such as UserTableSeeder, etc. A DatabaseSeeder class is required for each group and it's from this class that you may use the call method to run other seed classes, allowing you to control the seeding order.

To seed your database, you may use the db:seed command on the Artisan CLI:

```
minion db:seed

```

You may also specify a single group or multiple groups to seed:

```
minion db:seed --group=foo
minion db:seed --group=foo,bar

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/evopix-minion-database/health.svg)

```
[![Health](https://phpackages.com/badges/evopix-minion-database/health.svg)](https://phpackages.com/packages/evopix-minion-database)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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