All Projects → seabreeze-project → synchronizer-files

seabreeze-project / synchronizer-files

Licence: ISC license
Synchronize local and remote filesystems

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to synchronizer-files

DataBridge.NET
Configurable data bridge for permanent ETL jobs
Stars: ✭ 16 (+14.29%)
Mutual labels:  synchronizer
iliasDownloaderTool
synchronize, manage and download the files from your e-learning platform https://www.ilias.de/
Stars: ✭ 46 (+228.57%)
Mutual labels:  synchronizer
watchman-processor
Folder synchronization tool with a simple dashboard
Stars: ✭ 38 (+171.43%)
Mutual labels:  synchronizer

FlameCore FilesSynchronizer

Build Status Scrutinizer Coverage License

This library makes it easy to synchronize local and remote filesystems.

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

Getting Started

Include the vendor autoloader and use the classes:

namespace Acme\MyApplication;

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

require 'vendor/autoload.php';

Create your Source and Target objects:

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

Create the FilesSynchronizer and assign the Source and the Target:

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

Now start syncing your files:

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

Installation

Install via Composer

Install Composer if you don't already have it present on your system.

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

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

Requirements

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

Contributors

If you want to contribute, please see the CONTRIBUTING file first.

Thanks to the contributors:

  • Christian Neff (secondtruth)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].