dev-master
9999999-dev http://www.flamecore.orgSynchronize local and remote filesystems
ISC
The Requires
The Development Requires
filesystems synchronization
Synchronize local and remote filesystems
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)
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(); $synchronizer->synchronize(false); // Do not preserve obsolete files
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
If you want to contribute, please see the CONTRIBUTING file first., (*10)
Thanks to the contributors:, (*11)
Synchronize local and remote filesystems
ISC
filesystems synchronization