clear01/rsync-lib
Composer 安装命令:
composer require clear01/rsync-lib
包简介
Fork of a simple PHP rsync wrapper library by Alberto Fernandez
关键字:
README 文档
README
A simple PHP rsync wrapper library
Installation
Require it in composer:
composer require albertofem/rsync-lib dev-master
Install it:
composer update albertofem/rsync-lib
If you want to run the tests:
./vendor/bin/phpunit
Usage
Basic usage example:
<?php use AFM\Rsync\Rsync; $origin = __DIR__; $target = "/target/dir/"; $rsync = new Rsync; $rsync->sync($origin, $target);
Change behaviour:
<?php use AFM\Rsync\Rsync; $origin = __DIR__; $target = "/target/dir"; $config = array( 'delete_from_target' => true, 'ssh' => array( 'host' => myhost.com, 'public_key' => '/my/key.pub' ) ); $rsync = new Rsync($config); // change options programatically $rsync->setFollowSymlinks(false); $rsync->sync($origin, $target);
统计信息
- 总下载量: 146
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-31