2017 © Pedro Peláez
 

library sync-fs

PHP Library with command line tool for simple syncing folders via configuration file.

image

velikonja/sync-fs

PHP Library with command line tool for simple syncing folders via configuration file.

  • Sunday, May 7, 2017
  • by matejvelikonja
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7,430 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SyncFS

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight, (*1)

PHP Library with command line tool for simple syncing folders via configuration file., (*2)

SyncFS is PHP5 library build on Symfony components. Via simple configuration file written in YAML, you can define folders that you would like to sync, locally or remotely., (*3)

Usage examples, (*4)

  • Backing up local folder to external hard drive.
  • Backing up local folder to remote machine.
  • Syncing production assets to local machine for easier development.
  • Syncing production assets to staging / beta environment for better mimicking of production.

Dependencies, (*5)

  • Rsync - command line tool
  • Linux or OSX machine.

Install as tool

Via as composer

$ composer global require "velikonja/sync-fs"

Usage

$ ~/.composer/vendor/bin/syncfs

Add folder ~/.composer/vendor/bin/ to $PATH variable for global usage., (*6)

Install as library

$ composer require "velikonja/sync-fs"

Setup and usage of tool

  • First run syncfs init to create example config file in home folder (you can change config path via command arguments).
  • Edit config file.
  • Run syncfs sync.
  • Explore other possibilities with syncfs list.

Contributing

Install dependencies, (*7)

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install --dev

Tests

PHPUnit tests, (*8)

$ vendor/bin/phpunit

Coding standards tests, (*9)

$ phpcs --standard=PSR2 --ignore=/vendor --ignore=/log ./

The Versions

07/05 2017

dev-master

9999999-dev

PHP Library with command line tool for simple syncing folders via configuration file.

  Sources   Download

MIT

The Requires

 

The Development Requires

04/11 2014
01/08 2014