PHPackages                             alexandruflorea/quick-laravel-migrations - 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. alexandruflorea/quick-laravel-migrations

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

alexandruflorea/quick-laravel-migrations
========================================

A package made for importing database dumps faster than the laravel classic migration system.

1544PHPCI failing

Since Dec 19Pushed 5y ago2 watchersCompare

[ Source](https://github.com/aflorea4/quick-laravel-migrations)[ Packagist](https://packagist.org/packages/alexandruflorea/quick-laravel-migrations)[ RSS](/packages/alexandruflorea-quick-laravel-migrations/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

quick-laravel-migrations
========================

[](#quick-laravel-migrations)

A [composer package](https://packagist.org/packages/alexandruflorea/quick-laravel-migrations) made for importing database dumps faster than the laravel classic migration system.

It can be used to replace the rather slow

- `$this->runDatabaseMigrations()`
- `$this->seed()`
- `artisan migrate:fresh`
- `artisan migrate:fresh --seed`

What you can do after installation
==================================

[](#what-you-can-do-after-installation)

```
php artisan db:dump
php artisan db:load {--seed}
```

---

### You can also replace

[](#you-can-also-replace)

```
use Illuminate\Foundation\Testing\DatabaseMigrations;
```

### with

[](#with)

```
use QuickDatabaseMigrations\QuickDatabaseMigrations;
```

> It makes migrations for tests as fast as db:load at the cost of manually running db:dump after a migration|seed change (and no rollbacks after tests)

Documentation &amp; Installation
================================

[](#documentation--installation)

Installation
------------

[](#installation)

```
composer require alexandruflorea/quick-laravel-migrations
```

---

### Add these into your /app/Console/Kernel.php

[](#add-these-into-your-appconsolekernelphp)

> this enables db:dump and db:load

```
use QuickDatabaseMigrations;
```

```
/**
 * The Artisan commands provided by your application.
 *
 * @var array
 */
protected $commands = [
    \QuickDatabaseMigrations\MySqlDump::class,
    \QuickDatabaseMigrations\MySqlLoad::class
];
```

---

### To benefit from faster migrations during tests, replace:

[](#to-benefit-from-faster-migrations-during-tests-replace)

```
use Illuminate\Foundation\Testing\DatabaseMigrations;
```

### with

[](#with-1)

```
use QuickDatabaseMigrations\QuickDatabaseMigrations;
```

---

Documentation
-------------

[](#documentation)

> 3 utility classes are provided under the same namespace

### `QuickDatabaseMigrations`

[](#quickdatabasemigrations)

> defines hooks to migrate the database

> it requires a db:dump beforehand

#### Paste this at the top of the file

[](#paste-this-at-the-top-of-the-file)

```
use QuickDatabaseMigrations\QuickDatabaseMigrations;
```

#### And this at the top of the class

[](#and-this-at-the-top-of-the-class)

```
use QuickDatabaseMigrations;
```

#### Migrate using

[](#migrate-using)

```
$this->runDatabaseMigrations();     //fast migrate:fresh
$this->runDatabaseSeedMigrations(); //fast migrate:fresh --seed
```

```
$this->baseRunDatabaseMigrations();     //default migrate:fresh
$this->baseRunDatabaseSeedMigrations(); //default migrate:fresh --seed
```

### `MySqlDump`

[](#mysqldump)

> a fast way to generate dump files

> you can totally ignore this and manually place the dump files in `/QuickMigration/sql.dump` or `/QuickSeedMigration/sql.dump`

```
php artisan db:dump
```

### `MySqlLoad`

[](#mysqlload)

> a fast way to load a dump file

> you can totally ignore this as well if you want to manually import it every time

```
php artisan db:load
```

Supported versions
==================

[](#supported-versions)

Laravel 5.6+

Credits
=======

[](#credits)

👑 @GaussianWonder - Main Developer
----------------------------------

[](#-gaussianwonder---main-developer)

License
=======

[](#license)

The MIT License (MIT). Please see License File for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/315d245e8480aa5b196fe359fad15855c654ee30f77eb7918bc0fbc6b72070e3?d=identicon)[aflorea4](/maintainers/aflorea4)

---

Top Contributors

[![GaussianWonder](https://avatars.githubusercontent.com/u/42048855?v=4)](https://github.com/GaussianWonder "GaussianWonder (14 commits)")[![aflorea4](https://avatars.githubusercontent.com/u/5405865?v=4)](https://github.com/aflorea4 "aflorea4 (7 commits)")

### Embed Badge

![Health badge](/badges/alexandruflorea-quick-laravel-migrations/health.svg)

```
[![Health](https://phpackages.com/badges/alexandruflorea-quick-laravel-migrations/health.svg)](https://phpackages.com/packages/alexandruflorea-quick-laravel-migrations)
```

###  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)
