PHPackages                             divineomega/php-file-sync - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. divineomega/php-file-sync

Abandoned → [jord-jd/php-file-sync](/?search=jord-jd%2Fphp-file-sync)Library[File &amp; Storage](/categories/file-storage)

divineomega/php-file-sync
=========================

Synchronise files between multiple local or remote file systems

v3.0.1(1mo ago)65134LGPL-3.0-onlyPHPPHP &gt;=7.1CI passing

Since May 24Pushed 1mo agoCompare

[ Source](https://github.com/Jord-JD/php-file-sync)[ Packagist](https://packagist.org/packages/divineomega/php-file-sync)[ GitHub Sponsors](https://github.com/DivineOmega)[ RSS](/packages/divineomega-php-file-sync/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (11)Versions (7)Used By (0)

PHP File Sync
=============

[](#php-file-sync)

[![Tests](https://github.com/Jord-JD/php-file-sync/actions/workflows/tests.yml/badge.svg)](https://github.com/Jord-JD/php-file-sync/actions/workflows/tests.yml)

Synchronise files between multiple local or remote filesystems through Flysystem 1.x.

Installation
------------

[](#installation)

```
composer require jord-jd/php-file-sync
```

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.

```
use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;

$source = new Filesystem(new Local('/path/to/source'));
$destination = new Filesystem(new Local('/path/to/destination'));
```

One-way synchronisation
-----------------------

[](#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.

```
use JordJD\FileSync\FileSync;

(new FileSync())
    ->oneWay()
    ->from($source)
    ->to($destination)
    ->begin();
```

Multi-directional synchronisation
---------------------------------

[](#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.

```
(new FileSync())
    ->multiDirectional()
    ->with($filesystemA)
    ->with($filesystemB)
    ->with($filesystemC)
    ->begin();
```

Add `->withProgressBar()` before `->begin()` on either strategy to show command-line progress.

Important behavior
------------------

[](#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.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance94

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~449 days

Recently: every ~519 days

Total

6

Last Release

30d ago

Major Versions

v1.1.1 → v2.0.02026-02-14

v2.0.0 → v3.0.02026-02-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (14 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

file-syncfile-synchronizationfile-syncingphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/divineomega-php-file-sync/health.svg)

```
[![Health](https://phpackages.com/badges/divineomega-php-file-sync/health.svg)](https://phpackages.com/packages/divineomega-php-file-sync)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.4k](/packages/laravel-framework)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M535](/packages/pimcore-pimcore)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k293.8M1.2k](/packages/league-flysystem-aws-s3-v3)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.6M90](/packages/unisharp-laravel-filemanager)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9626.1k68](/packages/open-dxp-opendxp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
