PHPackages                             karabinse/translatable-revisions - 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. karabinse/translatable-revisions

ActiveLibrary

karabinse/translatable-revisions
================================

Translatable revisions for Laravel

2.0.1(4d ago)042—0%MITPHPPHP ^7.3|^8.0CI passing

Since Mar 17Pushed 4d agoCompare

[ Source](https://github.com/KarabinSE/translatable-revisions)[ Packagist](https://packagist.org/packages/karabinse/translatable-revisions)[ RSS](/packages/karabinse-translatable-revisions/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

karabinse/translatable-revisions
================================

[](#karabinsetranslatable-revisions)

[![tests](https://github.com/KarabinSE/translatable-revisions/actions/workflows/tests.yml/badge.svg)](https://github.com/KarabinSE/translatable-revisions/actions/workflows/tests.yml)

Translatable revisions for Laravel

```
$ composer require karabin/translatable-revisions
```

Upgrading
---------

[](#upgrading)

After upgrading, publish and run the package migrations:

```
php artisan vendor:publish --provider="Karabin\\TranslatableRevisions\\TranslatableRevisionsServiceProvider" --tag=migrations
php artisan migrate
```

New upgrade migrations include:

- lookup indexes for revision meta and template fields
- unique constraint for i18n definitions by `(term_id, locale)`
- structured lookup columns and index on i18n terms
- optional snapshot table for read-model acceleration

Snapshot Read Model
-------------------

[](#snapshot-read-model)

The package now supports an optional snapshot read model to speed up repeated field reads.

Enable it in config:

```
'use_snapshot_read_model' => true,
```

When enabled:

- `getSimpleFieldContent()` and `getFieldContent()` read from snapshots when available
- snapshots are rebuilt on first miss
- snapshots are invalidated on updates, purges, publish, and deletes

Backfilling Snapshots
---------------------

[](#backfilling-snapshots)

To warm snapshots for existing content, run:

```
php artisan translatable-revisions:snapshot-backfill --model="App\\Models\\Page"
```

You can pass `--model` multiple times for several models.

The command resolves revisions/locales from existing terms/meta rows and warms snapshots through each model's `getSimpleFieldContent()` method so model-specific getters remain respected.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance99

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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 ~0 days

Total

3

Last Release

4d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53842b68734249d1bd4581663ce93e12dd241047cbdc11c49065f294c0228d36?d=identicon)[Albin N](/maintainers/Albin%20N)

---

Top Contributors

[![nivv](https://avatars.githubusercontent.com/u/4033930?v=4)](https://github.com/nivv "nivv (135 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/karabinse-translatable-revisions/health.svg)

```
[![Health](https://phpackages.com/badges/karabinse-translatable-revisions/health.svg)](https://phpackages.com/packages/karabinse-translatable-revisions)
```

###  Alternatives

[rtconner/laravel-likeable

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

402385.8k5](/packages/rtconner-laravel-likeable)[naoray/eloquent-model-analyzer

Helpful methods to gain more information about eloquent model classes.

16429.8k1](/packages/naoray-eloquent-model-analyzer)[qlick/laravel-full-calendar

Laravel helper for FullCalendar.io. Fork of https://github.com/maddhatter/laravel-fullcalendar

1345.5k](/packages/qlick-laravel-full-calendar)[bjorn-voesten/ciphersweet-for-laravel

1611.6k](/packages/bjorn-voesten-ciphersweet-for-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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