PHPackages                             yusufonur/laravel-localization - 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. yusufonur/laravel-localization

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

yusufonur/laravel-localization
==============================

Laravel localization

1.1.1(5y ago)5111MITPHPPHP ^8.0

Since Dec 6Pushed 5y ago2 watchersCompare

[ Source](https://github.com/yusufonur/laravel-localization)[ Packagist](https://packagist.org/packages/yusufonur/laravel-localization)[ Docs](https://github.com/yusufonur/laravel-localization)[ RSS](/packages/yusufonur-laravel-localization/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (7)Versions (8)Used By (0)

Laravel localization
====================

[](#laravel-localization)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0e1680293c901bfc221383cabbfede9d5613f8a14da151522fd7175164160109/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79757375666f6e75722f6c61726176656c2d6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yusufonur/laravel-localization)[![GitHub Tests Action Status](https://camo.githubusercontent.com/422ce99a2e80546f2c12166189f84689ec73004017e95d653e90f902b38ba4fc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f79757375666f6e75722f6c61726176656c2d6c6f63616c697a6174696f6e2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/yusufonur/laravel-localization/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/3f56ac9e31f965fe8ce1886a1c22da62a6dbcace36551b56d129315d00a3b880/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79757375666f6e75722f6c61726176656c2d6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yusufonur/laravel-localization)

This package helps you to use multiple languages in your projects. You can write languages and their word equivalents and use them in your application. I recommend using redis for better performance.

Requirements
------------

[](#requirements)

- PHP 8,
- Laravel 6, 7, 8 latest version,
- Redis or TaggableStore driver for cache.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require yusufonur/laravel-localization
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="YusufOnur\LaravelLocalization\LaravelLocalizationServiceProvider" --tag="migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="YusufOnur\LaravelLocalization\LaravelLocalizationServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

```
$turkish = LaravelLocalization::createLanguage("Türkçe", "tr");
$english = LaravelLocalization::createLanguage("İngilizce", "en");

$metaHome = LaravelLocalization::createLanguageMeta("home");
$metaContact = LaravelLocalization::createLanguageMeta("Contact");

LaravelLocalization::createLanguageMetaTranslate($turkish, $metaHome, "Anasayfa");
LaravelLocalization::createLanguageMetaTranslate($turkish, $metaContact, "İletişim");
LaravelLocalization::createLanguageMetaTranslate($english, $metaHome, "Home");
LaravelLocalization::createLanguageMetaTranslate($english, $metaContact, "Contact");

return LaravelLocalization::getLanguageMetaTranslatesRegular();
    /*
        {
          "en": {
            "home": "Home",
            "Contact": "Contact"
          },
          "tr": {
            "home": "Anasayfa",
            "Contact": "İletişim"
          }
        }
    */
```

Helper Usage
------------

[](#helper-usage)

```
{{ __local("home") }}

```

If default language (you can get with app()-&gt;getLocale()) then result is **tr**: "Anasayfa"

If getLocale then result is **en**: "Home"

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Yusuf Onur SARI](https://github.com/yusufonur)
- [All Contributors](../../contributors)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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

7

Last Release

1983d ago

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

1.1.1PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b352b9fa8401213b24927db72b753d854fc0479b696c0f861fcca32e29ef15b?d=identicon)[coder2](/maintainers/coder2)

---

Top Contributors

[![yusufonur](https://avatars.githubusercontent.com/u/19153625?v=4)](https://github.com/yusufonur "yusufonur (12 commits)")[![mgsmus](https://avatars.githubusercontent.com/u/543371?v=4)](https://github.com/mgsmus "mgsmus (1 commits)")

---

Tags

laravel localizationyusufonur

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yusufonur-laravel-localization/health.svg)

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[silber/bouncer

Eloquent roles and abilities.

3.6k4.4M25](/packages/silber-bouncer)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)

PHPackages © 2026

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