定制 velikonja/sync-fs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

velikonja/sync-fs

Composer 安装命令:

composer require velikonja/sync-fs

包简介

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

README 文档

README

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight

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

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.

Usage examples

  • 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

  • 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.

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

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

Tests

PHPUnit tests

$ vendor/bin/phpunit

Coding standards tests

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

统计信息

  • 总下载量: 7.82k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固