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. noodleware/replicata

ActiveLibrary

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 1mo ago

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

28

—

LowBetter than 54% of packages

Maintenance44

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

439d 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

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

324339.9k4](/packages/casbin-laravel-authz)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[illuminatech/balance

Provides support for Balance accounting system based on debit and credit principle

16137.4k](/packages/illuminatech-balance)

PHPackages © 2026

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