PHPackages                             s3lp/piece-data - 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. s3lp/piece-data

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

s3lp/piece-data
===============

Pseudo replication Eloquent models via HTTP

0.9.4(11mo ago)00MITPHP

Since Jun 4Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/homedistil/piece-data)[ Packagist](https://packagist.org/packages/s3lp/piece-data)[ RSS](/packages/s3lp-piece-data/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Pseudo replication Laravel Eloquent models via HTTP

Master install
--------------

[](#master-install)

1. `composer require s3lp/piece-data:dev-master`
2. `artisan vendor:publish --provider="S3lp\PieceData\ServiceProvider"`
3. configure `slaves`:
    `['slave_name' => 'http://slave/api/unique/import_route']`
4. configure `export_models`:
    `['model_name' => App\Models\Model]`
5. configure `access_token`
6. `artisan migrate --path=vendor/s3lp/piece-data/database/migrations`
7. implements `Syncable` interface
8. sheduler include console command
    `S3lp\PieceData\Console\SyncModelsExport`

Slave install
-------------

[](#slave-install)

1. `composer require s3lp/piece-data:dev-master`
2. `artisan vendor:publish --provider="S3lp\PieceData\ServiceProvider"`
3. configure `import_models`
    `['model_name' => App\Models\Model]`
4. configure access `allowed_ips` and/or `access_token`
5. setup models `$fillable` attribute
6. include API routes map:
    `Route::any('/unique/import_route', '\\S3lp\\PieceData\\Controllers\\SyncImportController@syncImport');`

Manual master use
-----------------

[](#manual-master-use)

`artisan sync:models --status` – show queue status and main settings.

`artisan sync:models` – start sync.

`artisan sync:models --reset` – sync all exportable models.

**Options:**

`--models=name1,name2` – exportable models names for sync.

`--post-chunk=1000` – max models objects for one post-request.

`--reset-chunk=3000` – all exportable models query chunk for refill queue.

Tricks
------

[](#tricks)

```
public function getSyncSlaves(): array
{
    if (true) {
        return ['slave_name' => 'remove']; // force remove
    } elseif (true) {
        return array_filter(array_keys(config('sync_models.slaves')), 'callback');
    } else {
        return array_keys(config('sync_models.slaves'));
    }
}
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance51

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

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

348d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/485c22ae4495f8bf80b609916be0b3f3a31be1373006940b7f32db0a61e051a3?d=identicon)[HomeDistiller](/maintainers/HomeDistiller)

---

Tags

laraveleloquentsyncreplications3lp

### Embed Badge

![Health badge](/badges/s3lp-piece-data/health.svg)

```
[![Health](https://phpackages.com/badges/s3lp-piece-data/health.svg)](https://phpackages.com/packages/s3lp-piece-data)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[shiftonelabs/laravel-cascade-deletes

Adds application level cascading deletes to Eloquent Models.

163632.1k2](/packages/shiftonelabs-laravel-cascade-deletes)[korridor/laravel-has-many-sync

Laravel has many sync

3578.1k](/packages/korridor-laravel-has-many-sync)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40199.8k](/packages/cybercog-laravel-nova-ban)[illuminatech/sync-many-attribute

Allows control over Eloquent many-to-many relation via array attribute

156.7k](/packages/illuminatech-sync-many-attribute)

PHPackages © 2026

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