PHPackages                             robinncode/db\_craft - 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. robinncode/db\_craft

ActiveLibrary[Database &amp; ORM](/categories/database)

robinncode/db\_craft
====================

DB Craft is a CodeIgniter4 Seeder, Migration Generator. Automatic Migration Generation: DB-Craft provides a simple command-line interface to generate migration files automatically based on the connected database. This feature allows developers to keep track of database schema changes and easily apply them to different environments. Table-Specific Migrations: Developers can also generate migration files for specific tables, providing granular control over database changes. This flexibility allows for efficient database management and versioning. Seeding Support: DB-Craft includes functionality to generate seeders, enabling developers to populate their database with initial data. This feature is especially useful for setting up sample data or populating reference tables.

1.2.1(1y ago)194.2k↓40%6[3 issues](https://github.com/robinNcode/db_craft/issues)MITPHPPHP &gt;= 7.2

Since May 29Pushed 11mo ago3 watchersCompare

[ Source](https://github.com/robinNcode/db_craft)[ Packagist](https://packagist.org/packages/robinncode/db_craft)[ Docs](https://github.com/robinNcode/db_craft)[ RSS](/packages/robinncode-db-craft/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (8)Used By (0)

DB-Craft
========

[](#db-craft)

DB-Craft is a package for CodeIgniter 4 that provides convenient commands to generate migration and seeder files from a connected database.

- Automatic Migration Generation: DB-Craft provides a simple command-line interface to generate migration files automatically based on the connected database. This feature allows developers to keep track of database schema changes and easily apply them to different environments.
- Table-Specific Migrations: Developers can also generate migration files for specific tables, providing granular control over database changes. This flexibility allows for efficient database management and versioning.
- Seeding Support: DB-Craft includes functionality to generate seeders, enabling developers to populate their database with initial data. This feature is especially useful for setting up sample data or populating reference tables.

Installation
------------

[](#installation)

You can install the DB-Craft package via Composer by running the following command:

```
composer require robinncode/db_craft

```

Dependencies
------------

[](#dependencies)

DB-Craft has the following dependencies:

- PHP: ^7.0.\* || ^8.0.\*
- CodeIgniter/Framework: ^4.0.\*

Usage
-----

[](#usage)

DB-Craft comes with the following commands:

### Generate Migration Files

[](#generate-migration-files)

To generate all migration files from the connected database, run the following command:

```
php spark get:migration

```

To generate migration files for a specific table, run the following command:

```
php spark get:migration table_name

```

Replace `table_name` with the name of the specific table for which you want to generate migration files.

### Generate Seeder Files

[](#generate-seeder-files)

To generate all seeder files from the connected database, run the following command:

```
php spark get:seed

```

To generate seeder files for a specific table with table data, run the following command:

```
php spark get:seed table_name

```

Replace `table_name` with the name of the specific table for which you want to generate seeder files.

License
-------

[](#license)

DB-Craft is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance40

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Every ~122 days

Total

5

Last Release

594d ago

### Community

Maintainers

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

---

Top Contributors

[![robinNcode](https://avatars.githubusercontent.com/u/58462388?v=4)](https://github.com/robinNcode "robinNcode (34 commits)")[![Neo2SHYAlien](https://avatars.githubusercontent.com/u/1681317?v=4)](https://github.com/Neo2SHYAlien "Neo2SHYAlien (7 commits)")[![clsmedia](https://avatars.githubusercontent.com/u/9933752?v=4)](https://github.com/clsmedia "clsmedia (2 commits)")[![LouisStanley](https://avatars.githubusercontent.com/u/67686137?v=4)](https://github.com/LouisStanley "LouisStanley (1 commits)")

---

Tags

clicodeigniter4migrationspackagephpseedersspecificationphpmigrationseedercodeigniter4Connected DatabaseCLI Tool

### Embed Badge

![Health badge](/badges/robinncode-db-craft/health.svg)

```
[![Health](https://phpackages.com/badges/robinncode-db-craft/health.svg)](https://phpackages.com/packages/robinncode-db-craft)
```

###  Alternatives

[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[woenel/prpcmblmts

Philippines region, province, cities/municipalities and barangays Laravel migration and table seeder.

2818.3k](/packages/woenel-prpcmblmts)

PHPackages © 2026

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