PHPackages                             ajgl/flysystem-replicate - 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. ajgl/flysystem-replicate

ActiveLibrary[File &amp; Storage](/categories/file-storage)

ajgl/flysystem-replicate
========================

Flysystem Adapter for Replication

2.3.0(7mo ago)491.5k↓47%2MITPHPPHP ^8.1CI passing

Since Oct 18Pushed 7mo agoCompare

[ Source](https://github.com/ajgarlag/flysystem-replicate)[ Packagist](https://packagist.org/packages/ajgl/flysystem-replicate)[ RSS](/packages/ajgl-flysystem-replicate/feed)WikiDiscussions 2.x Synced 2d ago

READMEChangelogDependencies (6)Versions (9)Used By (2)

Flysystem Adapter for Replication.
==================================

[](#flysystem-adapter-for-replication)

This package is forked from the original [`league/flysystem-replicate-adapter`](https://packagist.org/packages/league/flysystem-replicate-adapter) written by [@frankdejonge](https://github.com/frankdejonge). The goal is to provide support for Flysystem V3

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

[](#installation)

```
composer require ajgl/flysystem-replicate
```

Usage
-----

[](#usage)

```
$source = new League\Flysystem\AwsS3V3\AwsS3V3Adapter(...);
$replica = new League\Flysystem\Local\LocalFilesystemAdapter(...);
$adapter = new Ajgl\Flysystem\Replicate\ReplicateFilesystemAdapter($source, $replica);
```

What's cool about this is that you can chain them to replicate to more then 1 other storage system.

```
$adapter = new Ajgl\Flysystem\Replicate\ReplicateFilesystemAdapter($source, $replica);

$anotherReplica = new League\Flysystem\WebDAV\WebDAVAdapter(...);
$adapter = new Ajgl\Flysystem\Replicate\ReplicateFilesystemAdapter($adapter, $anotherReplica);
```

### Symfony usage with `league/flysystem-bundle`

[](#symfony-usage-with-leagueflysystem-bundle)

If you have [`league/flysystem-bundle`](https://packagist.org/packages/league/flysystem-bundle) installed in your Symfony application, you have to define the replicate adapter service referencing your source and replica storages.

```
# config/services.yaml
services:
    app.replicate.storage:
        class: Ajgl\Flysystem\Replicate\ReplicateFilesystemAdapter
        arguments: ['@flysystem.adapter.source.storage', '@flysystem.adapter.replica.storage']
```

Then, you have to define a custom adapter in the `league/flysystem-bundle` configuration.

```
# config/packages/flysystem.yaml
flysystem:
    storages:
        source.storage:
            adapter: 'local'
            options:
                directory: '%kernel.project_dir%/var/storage'
        replica.storage:
            adapter: 'aws'
            options:
                client: 'aws.client'
                bucket: 'storage'
        replicate.storage:
            adapter: 'app.replicate.storage'
```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance64

Regular maintenance activity

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 79.1% 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 ~141 days

Recently: every ~283 days

Total

9

Last Release

222d ago

Major Versions

1.0.4 → 2.0.02022-10-19

1.x-dev → 2.1.02022-10-20

PHP version history (4 changes)1.0.2PHP &gt;=5.4.0

1.0.3PHP ^7.4

1.0.4PHP ^7.4 || ^8.0

2.3.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/f895b5880bdb002b96abac69a1a6630b4e20c4fbff9dbe3d47b08f0d1b7e2211?d=identicon)[ajgarlag](/maintainers/ajgarlag)

---

Top Contributors

[![ajgarlag](https://avatars.githubusercontent.com/u/388184?v=4)](https://github.com/ajgarlag "ajgarlag (53 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (9 commits)")[![twistor](https://avatars.githubusercontent.com/u/42400?v=4)](https://github.com/twistor "twistor (2 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")[![hannesvdvreken](https://avatars.githubusercontent.com/u/1410358?v=4)](https://github.com/hannesvdvreken "hannesvdvreken (1 commits)")[![Leechael](https://avatars.githubusercontent.com/u/106123?v=4)](https://github.com/Leechael "Leechael (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ajgl-flysystem-replicate/health.svg)

```
[![Health](https://phpackages.com/badges/ajgl-flysystem-replicate/health.svg)](https://phpackages.com/packages/ajgl-flysystem-replicate)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.0k](/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.5M85](/packages/unisharp-laravel-filemanager)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40432.5M137](/packages/league-flysystem-bundle)[alexusmai/laravel-file-manager

File manager for Laravel

1.2k803.2k9](/packages/alexusmai-laravel-file-manager)

PHPackages © 2026

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