PHPackages                             indeev/laravel-remote-db-sync - 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. indeev/laravel-remote-db-sync

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

indeev/laravel-remote-db-sync
=============================

Quickly sync remote database to local

v2.0(3y ago)2311MITPHPPHP ^8.0.2

Since Jul 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/inDeev/laravel-remote-db-sync)[ Packagist](https://packagist.org/packages/indeev/laravel-remote-db-sync)[ Docs](https://github.com/indeev/laravel-remote-db-sync)[ RSS](/packages/indeev-laravel-remote-db-sync/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

Easy way to synchronize remote database to the local.
=====================================================

[](#easy-way-to-synchronize-remote-database-to-the-local)

[![Latest Stable Version](https://camo.githubusercontent.com/f5bed30c9020075910ba76d6c91c90cd6ba518fd704503a6ee06fac027067204/687474703a2f2f706f7365722e707567782e6f72672f696e646565762f6c61726176656c2d72656d6f74652d64622d73796e632f76)](https://packagist.org/packages/indeev/laravel-remote-db-sync)[![Total Downloads](https://camo.githubusercontent.com/31046728e0d5bcbcf11232fda807856c235d97efdc63b781e2b4185f7d67c15d/687474703a2f2f706f7365722e707567782e6f72672f696e646565762f6c61726176656c2d72656d6f74652d64622d73796e632f646f776e6c6f616473)](https://packagist.org/packages/indeev/laravel-remote-db-sync)[![Latest Unstable Version](https://camo.githubusercontent.com/2d4de4896c520a7047799171fb2d9f356b0d5c82d4e2d370c25ba1ce40e24573/687474703a2f2f706f7365722e707567782e6f72672f696e646565762f6c61726176656c2d72656d6f74652d64622d73796e632f762f756e737461626c65)](https://packagist.org/packages/indeev/laravel-rapid-db-anonymizer)[![License](https://camo.githubusercontent.com/64d07cba074fe6d8a724804bc9ddfab5d35c0033ba0573959cb571a7b7cb894b/687474703a2f2f706f7365722e707567782e6f72672f696e646565762f6c61726176656c2d72656d6f74652d64622d73796e632f6c6963656e7365)](https://packagist.org/packages/indeev/laravel-remote-db-sync)

[![Laravel Remote DB Sync](https://github.com/inDeev/laravel-remote-db-sync/raw/master/img/laravel_remote_db_sync.png)](https://github.com/inDeev/laravel-remote-db-sync/blob/master/img/laravel_remote_db_sync.png)

Bored by exporting &amp; importing remote db to the local is history. With this package, just run single command and everything get processed in the background.

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

[](#installation)

You can install the package via composer:

```
composer require indeev/laravel-remote-db-sync --dev
```

It is required to have external connection defined in *config/database.php*

```
'connections' => [
        'sqlite' => [
            'driver' => 'sqlite',
            // ...
        ],

        'mysql' => [
            'driver' => 'mysql',
            'host' => env('DB_HOST', '127.0.0.1'),
            'port' => env('DB_PORT', '3306'),
            // ...
        ],

        'azure' => [ // Our external database connection
            'driver' => 'mysql',
            'host' => env('DB_HOST_AZURE', 'dbservicename.mysql.database.azure.com'),
            'port' => env('DB_PORT_AZURE', '3306'),
            'database' => env('DB_DATABASE_AZURE', ''),
            'username' => env('DB_USERNAME_AZURE', ''),
            'password' => env('DB_PASSWORD_AZURE', ''),
            'charset' => 'utf8mb4',
            'collation' => 'utf8mb4_unicode_ci',
            'prefix' => '',
            'prefix_indexes' => true,
            'strict' => true,
            'engine' => null,
            'server_version' => '5.7',
            'modes'  => [
                'ONLY_FULL_GROUP_BY',
                'STRICT_TRANS_TABLES',
                'NO_ZERO_IN_DATE',
                'NO_ZERO_DATE',
                'ERROR_FOR_DIVISION_BY_ZERO',
                'NO_ENGINE_SUBSTITUTION',
            ],
        ],
        // ...
```

Usage
-----

[](#usage)

To sync all tables:

```
php db:sync_remote azure
```

To sync everything without tables marked for skip:

```
php db:sync_remote azure --skipped=cache,log
```

To sync only defined tables (if --only is set, --skipped is ignored):

```
php db:sync_remote azure --only=customer,customer_settings
```

In all cases above can be added parameter --only\_schema=table,names to define tables without data sync. For instance to sync everything without tables cache, log and without data on tables documents, document\_metas:

```
php db:sync_remote azure --skipped=cache,log --only_schema=documents,document_metas
```

Testing
-------

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Petr Kateřiňák](https://github.com/indeev)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~116 days

Total

3

Last Release

1222d ago

Major Versions

v1.1 → v2.02023-02-27

PHP version history (2 changes)v1.0PHP ^7.4|^8.0

v2.0PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/00ca7c89cfcf385400d70eeb152888096bac038ad696756facace3b3ed351b81?d=identicon)[inDeev](/maintainers/inDeev)

---

Top Contributors

[![PetrKaterinak](https://avatars.githubusercontent.com/u/107394149?v=4)](https://github.com/PetrKaterinak "PetrKaterinak (2 commits)")[![inDeev](https://avatars.githubusercontent.com/u/33215381?v=4)](https://github.com/inDeev "inDeev (1 commits)")

---

Tags

databaselaravellaravel-packagesindeevlaravel-remote-db-sync

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/indeev-laravel-remote-db-sync/health.svg)

```
[![Health](https://phpackages.com/badges/indeev-laravel-remote-db-sync/health.svg)](https://phpackages.com/packages/indeev-laravel-remote-db-sync)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[lemaur/eloquent-publishing

218.1k1](/packages/lemaur-eloquent-publishing)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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