PHPackages                             izarmx/voyager-migration-generator - 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. izarmx/voyager-migration-generator

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

izarmx/voyager-migration-generator
==================================

This package autogenerates migrations out of database schema changes done through Voyager

v1.0.0(5y ago)0171MITPHPPHP ^7.0.0

Since Jan 31Pushed 5y agoCompare

[ Source](https://github.com/izarmx/voyager-migration-generator)[ Packagist](https://packagist.org/packages/izarmx/voyager-migration-generator)[ Docs](https://github.com/izarmx/voyager-migration-generator)[ RSS](/packages/izarmx-voyager-migration-generator/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Voyager Migration Generator
===========================

[](#voyager-migration-generator)

This package listens for database schema changes done through Laravel Voyager and generates migrations for them.

Based on [Generate Migrations Voyager Hook](https://github.com/mohammed-io/generate-migrations-hook) by @mohammed-io

Original author's comment:

> I like using Laravel Voyager, it really handles all the headache of creating the CRUD UI of the application, because I use Voyager for most of my small projects, there's one thing bothers me when it comes to using it, **database**!
>
> Because it updates the database in place, so there's no migration created, this is an issue if you made change and want to deploy it to your remote host, that's why I tried to make this little hook to handle the automatic creation of migrations.

Since this version is no longer a hook, it's installed as any other package:

```
composer require izarmx/voyager-migration-generator --dev
```

The reasoning behind not using it as a hook is that [larapack.io](larapack.io) don't seem to allow creating new hooks with the new composer's package name convention: `/`, thus, some hooks are no longer compatible with Composer v2.0. And personally, I'm not sure what's the advantage to having to manage hooks with multiple commands like `install` and `enable/disable`.

Todo
----

[](#todo)

\[ \] Write tests

Limitations
-----------

[](#limitations)

- No `down()` migration, only `up()`
- The file and class names are not very detailed.
- It generates a migration even if no actual changes happened to the table.
- You can't change the vendor (means if mysql should stay mysql) because there's vendor specific data types.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.2% 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

Unknown

Total

1

Last Release

1927d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26a03a318205199dc1fb73b5dc3960868e389a71baea63a5aeea32fabd7f173d?d=identicon)[dportalesr](/maintainers/dportalesr)

---

Top Contributors

[![mohammed-io](https://avatars.githubusercontent.com/u/18808136?v=4)](https://github.com/mohammed-io "mohammed-io (16 commits)")[![dportalesr](https://avatars.githubusercontent.com/u/237597?v=4)](https://github.com/dportalesr "dportalesr (5 commits)")

---

Tags

laravelmigrationmigrationsvoyager

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/izarmx-voyager-migration-generator/health.svg)

```
[![Health](https://phpackages.com/badges/izarmx-voyager-migration-generator/health.svg)](https://phpackages.com/packages/izarmx-voyager-migration-generator)
```

###  Alternatives

[xethron/migrations-generator

Generates Laravel Migrations from an existing database

3.3k3.3M25](/packages/xethron-migrations-generator)[dragon-code/laravel-deploy-operations

Performing any actions during the deployment process

240173.5k2](/packages/dragon-code-laravel-deploy-operations)[dragon-code/laravel-data-dumper

Adding data from certain tables when executing the `php artisan schema:dump` console command

3418.6k](/packages/dragon-code-laravel-data-dumper)

PHPackages © 2026

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