PHPackages                             alaame/laravel-translations - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. alaame/laravel-translations

ActiveLibrary[Localization &amp; i18n](/categories/localization)

alaame/laravel-translations
===========================

This package tends to add php and json translations to

0.1.2(5y ago)1605MITPHP

Since Nov 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alaamebrahim/laravel-translations)[ Packagist](https://packagist.org/packages/alaame/laravel-translations)[ RSS](/packages/alaame-laravel-translations/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

laravel translations package
============================

[](#laravel-translations-package)

#### A tiny package that enables you to share translations in resources/lang folder with your frontend

[](#a-tiny-package-that-enables-you-to-share-translations-in-resourceslang-folder-with-your-frontend)

#### Why to use

[](#why-to-use)

- Use `.json` translation files which has key,value pairs beside original `.php` files.
- Share all translations in `.json` and `.php` files with frontend.

#### Requirements

[](#requirements)

- PHP 7.4 or higher.

#### Installation

[](#installation)

- run `composer require alaame/laravel-translations`
- publish config file `php artisan vendor:publish --provider="Alaame\LaravelTranslations\LaravelTranslationsServiceProvider"`

#### usage

[](#usage)

- Just add `@translations` directive in blade file where you want your frontend to read translations from, there will be available javascript variable `window._translations` that you can use anywhere in your js files included AFTER this directive.
- package will read any `.json` or `.php` within `resources/lang` directory and make it available to frontend through `@translations` directive .
- If your config `supported-locales` contains a locale that not present or not created, package will create the folder automatically.

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

4

Last Release

1835d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ea7ccdd3ad8eb47ee61fd303392c463c276b5c91495682bb5c3b739349ce3ec?d=identicon)[alaamebrahim](/maintainers/alaamebrahim)

---

Top Contributors

[![alaamebrahim](https://avatars.githubusercontent.com/u/28540963?v=4)](https://github.com/alaamebrahim "alaamebrahim (7 commits)")

### Embed Badge

![Health badge](/badges/alaame-laravel-translations/health.svg)

```
[![Health](https://phpackages.com/badges/alaame-laravel-translations/health.svg)](https://phpackages.com/packages/alaame-laravel-translations)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k822.3M1.8k](/packages/symfony-translation)[commerceguys/addressing

Addressing library powered by CLDR and Google's address data.

95229.5M35](/packages/commerceguys-addressing)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

164648.9M4.2k](/packages/nesbot-carbon)[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.5M16](/packages/barryvdh-laravel-translation-manager)[a2lix/translation-form-bundle

Translate your doctrine objects easily with some helpers

3436.9M34](/packages/a2lix-translation-form-bundle)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

716892.4k8](/packages/joedixon-laravel-translation)

PHPackages © 2026

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