PHPackages                             ie/sql\_converter\_migration - 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. ie/sql\_converter\_migration

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

ie/sql\_converter\_migration
============================

convert sql to migration

1.8.0(5y ago)018MITPHP

Since Jan 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Islam9595/sql_converter)[ Packagist](https://packagist.org/packages/ie/sql_converter_migration)[ RSS](/packages/ie-sql-converter-migration/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)DependenciesVersions (11)Used By (0)

```
# sql_converter
### Installation
composer require ie/sql_converter_migration
### How to Use

use ie\sqlconvertertomigration\Models\SQLConverter;

$queries = "your queries"
SQLConverter::convertStringQueries($queries);

### example

$queries = "
DROP TABLE `t2`;
CREATE TABLE `Persons` (
`ID` int(11) NOT NULL,
`LastName` varchar(255) NOT NULL,
`FirstName` varchar(255) DEFAULT NULL,
`Age` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`,`LastName`),
FOREIGN KEY (`Age`) REFERENCES `t1`(`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `t1` ADD KEY `name` (`name`);
ALTER TABLE `t1` ADD CONSTRAINT `t1_ibfk_1` FOREIGN KEY (`name`) REFERENCES `Persons` (`ID`);
";
SQLConverter::convertStringQueries($queries);

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

10

Last Release

1976d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/45e21c727b51d22075733ac5d5837ca7a74680fc7600bded9f960eb1ce964caf?d=identicon)[IslamEmam](/maintainers/IslamEmam)

---

Top Contributors

[![Islam9595](https://avatars.githubusercontent.com/u/71778393?v=4)](https://github.com/Islam9595 "Islam9595 (12 commits)")

### Embed Badge

![Health badge](/badges/ie-sql-converter-migration/health.svg)

```
[![Health](https://phpackages.com/badges/ie-sql-converter-migration/health.svg)](https://phpackages.com/packages/ie-sql-converter-migration)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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