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

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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1887d 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.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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