Skip to content

php-sync-toolDatabase & File Synchronization for PHP

Sync MySQL, MariaDB or PostgreSQL databases and files between systems over SSH/rsync/SFTP — with automatic framework credential detection

php-sync-tool

Quick Example

bash
# Install via Composer
composer require konradmichalik/php-sync-tool

# Sync a database from production to local using a config file
bin/sync-tool -f config.yaml

Supported Frameworks

Point path at a framework's config file and credentials are detected automatically:

FrameworkVersionConfig File
TYPO37.6 – 12.xLocalConfiguration.php / AdditionalConfiguration.php or .env
TYPO3≥ 13config/system/settings.php / additional.php or .env
Symfony≥ 3.4.env (DATABASE_URL)
Symfony≤ 2.8parameters.yml
Drupal≥ 8.0settings.php (via drush)
WordPress≥ 5.0wp-config.php
Laravel≥ 4.0.env

About This Project

php-sync-tool is a PHP port of the Python db-sync-tool, built for teams that want database synchronization without a Python runtime on their build and deploy hosts. It targets feature parity with the original while integrating naturally into Composer-based PHP projects. See Coming from db-sync-tool if you already use the Python tool.

Released under the GPL-3.0-or-later License.