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(10mo ago)12410.0k↓46%10[2 issues](https://github.com/howyi/conv/issues)[2 PRs](https://github.com/howyi/conv/pulls)2MITPHPPHP &gt;=7.1

Since Aug 4Pushed 10mo 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 1w 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

50

—

FairBetter than 95% of packages

Maintenance49

Moderate activity, may be stable

Popularity45

Moderate usage in the ecosystem

Community23

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

326d 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://avatars.githubusercontent.com/u/6592938?v=4)[niwatori / Hayashi Takuya](/maintainers/howyi)[@howyi](https://github.com/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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k45.4M704](/packages/spatie-laravel-medialibrary)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k199.6M3.4k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k257.0M28.0k](/packages/friendsofphp-php-cs-fixer)[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136411.0k14](/packages/rector-rector-src)

PHPackages © 2026

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