PHPackages                             mtolhuijs/laravel-database-synchronizer - 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. mtolhuijs/laravel-database-synchronizer

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

mtolhuijs/laravel-database-synchronizer
=======================================

Synchronize your production and development databases with a simple command

0.3.6(5y ago)272.9k↓66.7%9[3 issues](https://github.com/mtolhuys/laravel-database-synchronizer/issues)[4 PRs](https://github.com/mtolhuys/laravel-database-synchronizer/pulls)MITPHP

Since Apr 4Pushed 3y ago2 watchersCompare

[ Source](https://github.com/mtolhuys/laravel-database-synchronizer)[ Packagist](https://packagist.org/packages/mtolhuijs/laravel-database-synchronizer)[ Docs](https://github.com/mtolhuys/laravel-database-synchronizer)[ RSS](/packages/mtolhuijs-laravel-database-synchronizer/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (6)Versions (14)Used By (0)

Laravel database synchronizer
=============================

[](#laravel-database-synchronizer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/aba4872d30a142590476fb84882e0f42b6e4079dfd889ec19c01d1f6cdee1860/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d746f6c6875696a732f6c61726176656c2d64617461626173652d73796e6368726f6e697a65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mtolhuijs/laravel-database-synchronizer)[![Total Downloads](https://camo.githubusercontent.com/e15c4f0c8ed162d102d6b751bfd26e1a57fc1430be149bdc9ad116bdcc54008e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d746f6c6875696a732f6c61726176656c2d64617461626173652d73796e6368726f6e697a65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mtolhuijs/laravel-database-synchronizer)[![Build Status](https://camo.githubusercontent.com/41c0e410f037b7e7486c762c297c33a13d54c11e0ae7b090d58e2bd22f291096/68747470733a2f2f6170692e7472617669732d63692e636f6d2f6d746f6c687579732f6c61726176656c2d64617461626173652d73796e6368726f6e697a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mtolhuys/laravel-database-synchronizer)[![StyleCI](https://camo.githubusercontent.com/d2b587c2d956ba04c9f91efcccd38b775b95990c736b57c3d5b44438b4cb7f5c/68747470733a2f2f7374796c6563692e696f2f7265706f732f3137373630333130372f736869656c64)](https://styleci.io/repos/177603107)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/48f0a5c60e97f9495f9c239b23eb410977b5723805e43d20e25e16e35b17fc4d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d746f6c687579732f6c61726176656c2d64617461626173652d73796e6368726f6e697a65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mtolhuys/laravel-database-synchronizer/?branch=master)

Keep your production and development databases in sync
======================================================

[](#keep-your-production-and-development-databases-in-sync)

This package will completely synchronize the database specified as "from" and "to" in the config or through the command options.

Want to collaborate? Nice! Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

Via Composer

```
$ composer require mtolhuijs/laravel-database-synchronizer
```

*Optionally* you can run `php artisan vendor:publish --provider mtolhuijs\LDS\DatabaseSynchronizerServiceProvider`which will create a config file in the root config folder to adjust the behavior of the package.

Usage
-----

[](#usage)

This package comes with 1 command:

- `php artisan db:sync` Synchronizes your "from" database with your "to" database

```
db:sync
{ --from= : Synchronize data from this database instead of the one specified in config }
{ --to= : Synchronize data to this database instead of the one specified in config }
{ --t|tables=* : Only run for given table(s) }
{ --st|skip-tables=* : Skip given table(s) }
{ --l|limit= : Limit query rows (defaults to 5000) }
{ --truncate : Truncate before inserting data }

```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Maarten Tolhuijs](https://github.com/mtolhuys)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.3% 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 ~99 days

Total

8

Last Release

1905d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f86a601f247298c0f4beb73d0fd47aca41551ad230c4a0ff9cdab56ddc0d55f?d=identicon)[mtolhuijs](/maintainers/mtolhuijs)

---

Top Contributors

[![mtolhuys](https://avatars.githubusercontent.com/u/10849136?v=4)](https://github.com/mtolhuys "mtolhuys (51 commits)")[![mbroersen](https://avatars.githubusercontent.com/u/2418774?v=4)](https://github.com/mbroersen "mbroersen (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![Mirnaxvb](https://avatars.githubusercontent.com/u/6596602?v=4)](https://github.com/Mirnaxvb "Mirnaxvb (2 commits)")

---

Tags

laravellaravel-database-synchronizer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mtolhuijs-laravel-database-synchronizer/health.svg)

```
[![Health](https://phpackages.com/badges/mtolhuijs-laravel-database-synchronizer/health.svg)](https://phpackages.com/packages/mtolhuijs-laravel-database-synchronizer)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[illuminatech/config

Provides support for Laravel application runtime configuration managed in persistent storage

14921.0k1](/packages/illuminatech-config)

PHPackages © 2026

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