spatie/laravel-translatable
Add multilingual fields to Eloquent models using a simple HasTranslations trait. Store translations as JSON on the model (no extra tables). Set/get translations per locale, switch app locale, fetch all translations, and even translate nested JSON keys via -> notation.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/laravel-translation-loader | 0.89 | Store Laravel/Lumen translation strings in the database while keeping the familiar __() helper. Mix file and DB translations; DB values override files. Extendable to other translation sources via custom providers. | 836 | 839 | 91 | 104K | 0 | 36.2 | 34.1 | MIT | 1 month ago | |
| astrotomic/laravel-translatable | 0.88 | Laravel package for translatable Eloquent models. Store model translations in the database and automatically fetch/save the correct locale with minimal code. Simplifies retrieving and persisting multilingual attributes across your app. | 1,399 | 1,408 | 178 | 171K | 28 | 50.2 | 46.1 | MIT | 1 week ago | |
| laravel-lang/lang | 0.86 | Community-maintained Laravel translation files for many locales. Adds localizations for core messages and validation, with easy Composer install and ongoing updates. Part of the Laravel Lang ecosystem; see docs for setup and contribution guidelines. | 7,773 | 7,800 | 2,990 | 410K | 0 | 70.5 | 28.1 | MIT | 2 weeks ago | |
| yiisoft/translator | 0.85 | yiisoft/translator is a lightweight PHP translation library for managing messages, locales, and pluralization. Integrates with Yii and PSR-style components, supports multiple message sources and fallback locales, and is suitable for apps and libraries needing i18n. | 26 | — | 9 | — | 10 | 23.2 | 3.6 | BSD-3-Clause | 4 months ago | |
| gettext/gettext | 0.81 | PHP library (PHP 7.2+) to import, edit, and export gettext translations. Load from PO/MO/JSON/PHP/JS, scan source files to extract strings, manage Translation/Translations objects, and generate outputs like PO, MO, and JSON for localization workflows. | 705 | 726 | 139 | 704K | 23 | 44.0 | 60.4 | MIT | 1 year ago |
How can I help you explore Laravel packages today?