PHPackages                             howyi/conv - 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. howyi/conv

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

howyi/conv
==========

Generate MySQL migration queries from actual DB and DDL

v2.1.9(7mo ago)12381.1k↓17%10[2 PRs](https://github.com/howyi/conv/pulls)2MITPHPPHP &gt;=7.1

Since Aug 4Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/howyi/conv)[ Packagist](https://packagist.org/packages/howyi/conv)[ GitHub Sponsors](https://github.com/howyi)[ RSS](/packages/howyi-conv/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (43)Used By (2)

[![Build Status](https://camo.githubusercontent.com/41b7e9f53a398e71b55cee2ccaebb58987b7ce408f501a181c3ff362e85c2b0c/68747470733a2f2f7472617669732d63692e6f72672f686f7779692f636f6e762e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/howyi/conv)[![Coverage Status](https://camo.githubusercontent.com/25ef1dcce77d16ec23babf18c3f0a126048ccaa3d5a6c6dd50a54ed13feb8ede/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f686f7779692f636f6e762f62616467652e7376673f6272616e63683d6d6173746572236b6f6e6275)](https://coveralls.io/github/howyi/conv?branch=master)[![Total Downloads](https://camo.githubusercontent.com/e932f30a25701fe332a9b13ba77a23c2f07d873e3909c299341ce0274beabc24/68747470733a2f2f706f7365722e707567782e6f72672f686f7779692f636f6e762f646f776e6c6f616473)](https://packagist.org/packages/howyi/conv)

conv
====

[](#conv)

Core package for [howyi/conv-laravel](https://github.com/howyi/conv-laravel)

Generate MySQL migration queries from actual DB and DDL

```
composer require howyi/conv --dev

```

#### Query sample

[](#query-sample)

tbl\_user.sql

```
CREATE TABLE `tbl_user` (
  `user_id` int(11) NOT NULL COMMENT 'User ID',
  `age` tinyint(3) UNSIGNED COMMENT 'User age',
  PRIMARY KEY (`user_id`),
  KEY `id_age` (`user_id`, `age`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='User management table';
```

#### Generated migration

[](#generated-migration)

UP

```
CREATE TABLE `tbl_user` (
  `user_id` int(11) NOT NULL COMMENT 'User ID',
  `age` tinyint(3) UNSIGNED COMMENT 'User age',
  PRIMARY KEY (`user_id`),
  KEY `id_age` (`user_id`, `age`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='User management table';
```

DOWN

```
DROP TABLE `tbl_user`;
```

CONTRIBUTING
------------

[](#contributing)

### install

[](#install)

```
$ composer install
```

### check (before pull-request)

[](#check-before-pull-request)

```
$ composer check-fix
```

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance62

Regular maintenance activity

Popularity45

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 75.5% 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 ~90 days

Recently: every ~138 days

Total

34

Last Release

236d ago

Major Versions

v0.0.4 → v1.0.02017-10-10

v1.2.1 → v2.0.02019-02-01

PHP version history (2 changes)v0.0.1PHP &gt;=7.0.16

v1.0.8PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/92410aec7c4bc9780f6edb43a440715142e0d7bb20e6562742b5538f547a5e27?d=identicon)[howyi](/maintainers/howyi)

---

Top Contributors

[![howyi](https://avatars.githubusercontent.com/u/6592938?v=4)](https://github.com/howyi "howyi (37 commits)")[![nutsh3ll](https://avatars.githubusercontent.com/u/21660543?v=4)](https://github.com/nutsh3ll "nutsh3ll (3 commits)")[![il-masaru-yamagishi](https://avatars.githubusercontent.com/u/180239017?v=4)](https://github.com/il-masaru-yamagishi "il-masaru-yamagishi (2 commits)")[![nodokaha](https://avatars.githubusercontent.com/u/58126606?v=4)](https://github.com/nodokaha "nodokaha (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![y1n0](https://avatars.githubusercontent.com/u/8240619?v=4)](https://github.com/y1n0 "y1n0 (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![sayuprc](https://avatars.githubusercontent.com/u/41261915?v=4)](https://github.com/sayuprc "sayuprc (1 commits)")[![somen440](https://avatars.githubusercontent.com/u/10706586?v=4)](https://github.com/somen440 "somen440 (1 commits)")

---

Tags

convmysql

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/howyi-conv/health.svg)

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

###  Alternatives

[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[getgrav/grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS

15.4k84.1k1](/packages/getgrav-grav)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)

PHPackages © 2026

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