PHPackages                             adrienpoupa/migrate-routines - 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. adrienpoupa/migrate-routines

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

adrienpoupa/migrate-routines
============================

Generate Laravel Migrations from existing MySQL routines: views, procedures, functions and triggers.

1.0(6y ago)4518MITPHPPHP &gt;=7.0

Since Dec 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/AdrienPoupa/migrate-routines)[ Packagist](https://packagist.org/packages/adrienpoupa/migrate-routines)[ RSS](/packages/adrienpoupa-migrate-routines/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Migrate Routines for Laravel
----------------------------

[](#migrate-routines-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/a3f470a670c445595f45341c5e3194d1dffbe289583532dd3f1165c28de083db/68747470733a2f2f706f7365722e707567782e6f72672f61647269656e706f7570612f6d6967726174652d726f7574696e65732f76657273696f6e2e706e67)](https://packagist.org/packages/adrienpoupa/migrate-routines)[![Total Downloads](https://camo.githubusercontent.com/50524f315248c30ee99e92256bd5e4c57b2d6af0ff0d96b542bf71dec7f1b2e4/68747470733a2f2f706f7365722e707567782e6f72672f61647269656e706f7570612f6d6967726174652d726f7574696e65732f642f746f74616c2e706e67)](https://packagist.org/packages/adrienpoupa/migrate-routines)

Generate Laravel Migrations from existing MySQL routines: views, procedures, functions and triggers

### Installation

[](#installation)

Require this package with composer. It is recommended to only require the package for development.

```
composer require adrienpoupa/migrate-routines --dev
```

### Usage

[](#usage)

Convert the existing views into migrations

```
php artisan migrate:views
```

Convert the existing procedures into migrations

```
php artisan migrate:procedures
```

Convert the existing functions into migrations

```
php artisan migrate:functions
```

Convert the existing triggers into migrations

```
php artisan migrate:triggers
```

For all the commands, is possible to specify the database from which to retrieve the routines with the `--database` option, like this:

```
php artisan migrate:views --database=database_name
```

For this package to work, your database connection should be done with a user privileged enough to run elevated queries from the information\_schema and the mysql.proc tables.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

2394d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15086425?v=4)[Adrien Poupa](/maintainers/AdrienPoupa)[@AdrienPoupa](https://github.com/AdrienPoupa)

---

Top Contributors

[![AdrienPoupa](https://avatars.githubusercontent.com/u/15086425?v=4)](https://github.com/AdrienPoupa "AdrienPoupa (2 commits)")

---

Tags

laravelmigrationgeneratorartisanmigrationsprocedure

### Embed Badge

![Health badge](/badges/adrienpoupa-migrate-routines/health.svg)

```
[![Health](https://phpackages.com/badges/adrienpoupa-migrate-routines/health.svg)](https://phpackages.com/packages/adrienpoupa-migrate-routines)
```

###  Alternatives

[kitloong/laravel-migrations-generator

Generates Laravel Migrations from an existing database

2.9k8.2M34](/packages/kitloong-laravel-migrations-generator)[xethron/migrations-generator

Generates Laravel Migrations from an existing database

3.4k3.3M25](/packages/xethron-migrations-generator)[oscarafdev/migrations-generator

Generates Laravel Migrations from an existing database

365594.1k](/packages/oscarafdev-migrations-generator)[daavelar/revengedb

RevengeDb provides an artisan command to make a reverse engineer of the database, generating automatically the migrations for you

203.1k](/packages/daavelar-revengedb)

PHPackages © 2026

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