Download the PHP package jord-jd/php-file-sync without Composer
On this page you can find all versions of the php package jord-jd/php-file-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jord-jd/php-file-sync
More information about jord-jd/php-file-sync
Files in jord-jd/php-file-sync
Package php-file-sync
Short Description Synchronise files between multiple local or remote file systems
License LGPL-3.0-only
Informations about the package php-file-sync
PHP File Sync
Synchronise files between multiple local or remote filesystems through Flysystem 1.x.
Installation
Create each filesystem with the appropriate Flysystem adapter. The examples below use local adapters, but the synchronisation strategies work with any Flysystem 1.x Filesystem instance.
One-way synchronisation
One-way synchronisation copies files that are missing from the destination, plus source files whose timestamps are newer. It does not delete destination-only files.
Multi-directional synchronisation
Multi-directional synchronisation makes the newest version of each file available on every configured filesystem. Files that exist on only one filesystem are copied to the others.
Add ->withProgressBar() before ->begin() on either strategy to show command-line progress.
Important behavior
- Paths are compared exactly as returned by Flysystem.
- Modification timestamps decide which version is newer.
- Existing files may be overwritten by newer copies.
- Deletions are not propagated.
- Check the boolean result or exceptions produced by your Flysystem adapter when storage failures need application-specific handling.
All versions of php-file-sync with dependencies
league/flysystem Version ^1.0
jord-jd/php-cli-progress-bar Version ^4.0
nesbot/carbon Version ^1.0||^2.27