PHPackages                             mariusz-buk/files-replicator - 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. mariusz-buk/files-replicator

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

mariusz-buk/files-replicator
============================

OctoberCMS FilesReplicator trait used when replicating any model with files

v1.0.3(7y ago)036GPL-3.0-or-laterPHPPHP &gt;=7.0

Since Oct 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mariusz-buk/files-replicator)[ Packagist](https://packagist.org/packages/mariusz-buk/files-replicator)[ RSS](/packages/mariusz-buk-files-replicator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Files replicator for OctoberCMS
===============================

[](#files-replicator-for-octobercms)

OctoberCMS FilesReplicator trait used when replicating any model with files.

How to use
----------

[](#how-to-use)

1. Run `composer require "mariusz-buk/files-replicator"`
2. Define model's properties `$attachOne` and/or `$attachMany`.
3. Add `use FilesReplicator\FilesReplicatorTrait;` to your model class.
4. For replicating model use `$newModel = $oldModel->replicate()`. That's all.
5. If you want update existing model with files from other model (of the same class) use `$myModel->replicateFilesFrom($otherModel)`.

About this code
---------------

[](#about-this-code)

I found it would be useful to replicate files when we replicate model. I saw more coders looked for solution so here it is. I hope you'll find it easy to use.

Any questions/suggestions are welcome.

I provide commercial support for your projects.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~28 days

Total

3

Last Release

2700d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/945a0f5f1ff8c5022e42d7736e58f6c47335e3799e5fde0694eea459f35d10c3?d=identicon)[mariusz-buk](/maintainers/mariusz-buk)

---

Top Contributors

[![mariusz-buk](https://avatars.githubusercontent.com/u/4953077?v=4)](https://github.com/mariusz-buk "mariusz-buk (19 commits)")

### Embed Badge

![Health badge](/badges/mariusz-buk-files-replicator/health.svg)

```
[![Health](https://phpackages.com/badges/mariusz-buk-files-replicator/health.svg)](https://phpackages.com/packages/mariusz-buk-files-replicator)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M123](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M61](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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