PHPackages                             noodleware/replicata - 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. [Database &amp; ORM](/categories/database)
4. /
5. noodleware/replicata

ActiveLibrary[Database &amp; ORM](/categories/database)

noodleware/replicata
====================

A Laravel package for deep cloning Eloquent models and their nested relationships.

v1.0.0(1y ago)03MITPHPPHP ^8.2

Since Mar 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/noodleware/replicata)[ Packagist](https://packagist.org/packages/noodleware/replicata)[ RSS](/packages/noodleware-replicata/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Replicata
=========

[](#replicata)

Replicata is a simple Laravel package that provides a static class for replicating any Eloquent model along with its specified relationships.

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

[](#installation)

To install Replicata, use Composer:

```
composer require noodleware/replicata
```

Usage
-----

[](#usage)

Replicata allows you to quickly replicate a model and its related data with a simple static method call.

### Example

[](#example)

```
use Noodleware\Replicata\Replicata;

$model = Model::find(1);

$clonedModel = Replicata::replicate($model, ['relation1', 'relation2.subRelation1']);
```

This will:

- Clone the given model.
- Clone the specified relationships, including nested relationships if provided.

Supported Relationship Types
----------------------------

[](#supported-relationship-types)

Replicata supports the following relationship types:

- `BelongsToMany`
- `HasMany`
- `HasOne`
- `MorphMany`
- `MorphOne`
- `MorphToMany`

---

### License

[](#license)

This package is open-source under the [MIT License](LICENSE).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance41

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

485d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88c991f3bf72ea553e89061946854d6e1a1d406683eff1babf5989d28c2375c1?d=identicon)[ben@kbvd.co.uk](/maintainers/ben@kbvd.co.uk)

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/noodleware-replicata/health.svg)

```
[![Health](https://phpackages.com/badges/noodleware-replicata/health.svg)](https://phpackages.com/packages/noodleware-replicata)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[awobaz/compoships

Laravel relationships with support for composite/multiple keys

1.2k11.7M47](/packages/awobaz-compoships)[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.3M19](/packages/bavix-laravel-wallet)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)

PHPackages © 2026

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