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 3w 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 36% 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

1932d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28540963?v=4)[Alaa m ebrahim](/maintainers/alaamebrahim)[@alaamebrahim](https://github.com/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

[php-translation/translator

Translator services

25224.8k5](/packages/php-translation-translator)[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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