2017 © Pedro Peláez

library synchronizer-files

Synchronize local and remote filesystems



Synchronize local and remote filesystems

  • Thursday, September 28, 2017
  • by secondtruth
  • Repository
  • 7 Watchers
  • 14 Stars
  • 35 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown


FlameCore FilesSynchronizer

Build Status Scrutinizer Coverage License, (*1)

This library makes it easy to synchronize local and remote filesystems., (*2)

FilesSynchronizer was developed as backend for the deployment and testing tool Seabreeze. It is using our self-developed Synchronizer library as foundation., (*3)

Getting Started

Include the vendor autoloader and use the classes:, (*4)

namespace Acme\MyApplication;

use FlameCore\Synchronizer\Files\FilesSynchronizer;
use FlameCore\Synchronizer\Files\Location\LocalFilesLocation;

require 'vendor/autoload.php';

Create your Source and Target objects:, (*5)

$source = new LocalFilesLocation(['dir' => $sourcePath]);
$target = new LocalFilesLocation(['dir' => $targetPath]);

Create the FilesSynchronizer and assign the Source and the Target:, (*6)

$synchronizer = new FilesSynchronizer($source, $target);
$synchronizer->observe($observer); // optionally set an EventObserver object

Now start syncing your files:, (*7)

$synchronizer->synchronize(false); // Do not preserve obsolete files


Install via Composer

Install Composer if you don't already have it present on your system., (*8)

To install the library, run the following command and you will get the latest development version:, (*9)

$ php composer.phar require flamecore/synchronizer-files:dev-master


  • You must have at least PHP version 5.4 installed on your system.


If you want to contribute, please see the CONTRIBUTING file first., (*10)

Thanks to the contributors:, (*11)

  • Christian Neff (secondtruth)

The Versions

28/09 2017


9999999-dev http://www.flamecore.org

Synchronize local and remote filesystems

  Sources   Download


The Requires


The Development Requires

filesystems synchronization