PHPackages                             bertugfahriozer/sql2migration - 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. bertugfahriozer/sql2migration

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

bertugfahriozer/sql2migration
=============================

A Spark command for CodeIgniter 4 that generates migration files from an SQL file, with support for foreign keys, triggers, and DB prefix.

v1.0.3(9mo ago)19341MITPHPPHP ^8.0CI passing

Since Sep 7Pushed 9mo agoCompare

[ Source](https://github.com/bertugfahriozer/sql2migration)[ Packagist](https://packagist.org/packages/bertugfahriozer/sql2migration)[ Docs](https://github.com/bertugfahriozer/sql2migration)[ RSS](/packages/bertugfahriozer-sql2migration/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (5)Used By (1)

SQL to Migration for CodeIgniter 4
==================================

[](#sql-to-migration-for-codeigniter-4)

This package generates CodeIgniter 4 migration files from SQL dump files. It has support for foreign keys, triggers, and DB prefix.

Install
-------

[](#install)

Install with Composer:

```
composer require bertugfahriozer/sql2migration
```

Useage
------

[](#useage)

```
php spark sql2migration /path/to/database.sql
```

For details: [Documentation](docs.md)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance56

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity44

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 ~3 days

Total

4

Last Release

290d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20905215?v=4)[Bertuğ Fahri ÖZER](/maintainers/bertugfahriozer)[@bertugfahriozer](https://github.com/bertugfahriozer)

---

Top Contributors

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

---

Tags

clicodeignitercodeigniter4converterdatabasedatabase-migrationsmigrationmysqlphpphp-toolsparksqlsql-migrationmigrationsparkcodeigniter4sql-to-migration

### Embed Badge

![Health badge](/badges/bertugfahriozer-sql2migration/health.svg)

```
[![Health](https://phpackages.com/badges/bertugfahriozer-sql2migration/health.svg)](https://phpackages.com/packages/bertugfahriozer-sql2migration)
```

###  Alternatives

[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.

204.7k](/packages/robinncode-db-craft)

PHPackages © 2026

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