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

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

moox/localization
=================

This is my package localization

5.0.12(1mo ago)5296↑119.1%MITPHP

Since May 20Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/mooxphp/localization)[ Packagist](https://packagist.org/packages/moox/localization)[ Docs](https://moox.org/)[ GitHub Sponsors](https://github.com/mooxphp)[ RSS](/packages/moox-localization/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (4)Versions (10)Used By (0)

[![Moox Localization](https://github.com/mooxphp/moox/raw/main/art/banner/localization-package.jpg)](https://github.com/mooxphp/moox/raw/main/art/banner/localization-package.jpg)

Moox Localization
=================

[](#moox-localization)

This is a package for Laravel to handle localization and requires the package [astrotomic/laravel-translatable](https://github.com/Astrotomic/laravel-translatable).

Quick Installation
------------------

[](#quick-installation)

These two commmands are all you need to install the package:

```
composer require moox/localization
php artisan localization:install
```

Curious what the install command does? See manual installation below.

What it does
------------

[](#what-it-does)

- Will create a new table `localizations` with the following columns:

    - `language_id`
    - `routing_path`
    - `title`
    - `description`
    - `keywords`
    - `author`
    - `created_at`
    - `updated_at`
- Has dependencies to the `astrotomic/laravel-translatable` and `moox/core` package.
- Has Language Switcher Livewire Component and LocalizationPanelProvider.

#### LocalizationPanelProvider

[](#localizationpanelprovider)

To use the LocalizationPanelProvider, you need to enable it in the config file:

```
    'enable-panel' => true,
```

now the panel will be available at `/localization`

#### Language Switcher

[](#language-switcher)

Include a Language switcher which wil rely on your created locales. To include it in filament panel

```
->renderHook(
                \Filament\View\PanelsRenderHook::USER_MENU_BEFORE,
                fn (): string => \Illuminate\Support\Facades\Blade::render('@livewire(\'language-switch\',[\'context\'=>\'backend\'])'),
            );

```

or just use the livewire component in your blade view:

```
@livewire('language-switch',['context'=>'backend'])
```

#### LanguageMiddleware

[](#languagemiddleware)

The LanguageMiddleware is used to set a session cookie for the language.

#### Tabs and Translation

[](#tabs-and-translation)

Moox Core features like Dynamic Tabs and Translatable Config. See the config file for more details, but as a quick example:

```
            /*
            |--------------------------------------------------------------------------
            | Tabs
            |--------------------------------------------------------------------------
            |
            | Define the tabs for the Resource table. They are optional, but
            | pretty awesome to filter the table by certain values.
            | You may simply do a 'tabs' => [], to disable them.
            |
            */

            'tabs' => [
                'all' => [
                    'label' => 'trans//core::core.all',
                    'icon' => 'gmdi-filter-list',
                    'query' => [
                        [
                            'field' => 'deleted_at',
                            'operator' => '=',
                            'value' => null,
                        ],
                    ],
                ],
                'published' => [
                    'label' => 'trans//core::core.published',
                    'icon' => 'gmdi-check-circle',
                    'query' => [
                        [
                            'field' => 'publish_at',
                            'operator' => '',
                            'value' => function () {
                                return now();
                            },
                        ],
                        [
                            'field' => 'deleted_at',
                            'operator' => '=',
                            'value' => null,
                        ],
                    ],
                ],
                'draft' => [
                    'label' => 'trans//core::core.draft',
                    'icon' => 'gmdi-text-snippet',
                    'query' => [
                        [
                            'field' => 'publish_at',
                            'operator' => '=',
                            'value' => null,
                        ],
                        [
                            'field' => 'deleted_at',
                            'operator' => '=',
                            'value' => null,
                        ],
                    ],
                ],
                'deleted' => [
                    'label' => 'trans//core::core.deleted',
                    'icon' => 'gmdi-delete',
                    'query' => [
                        [
                            'field' => 'deleted_at',
                            'operator' => '!=',
                            'value' => null,
                        ],
                    ],
                ],
            ],
        ],
```

All options for Tabs are explained in [Moox Core docs](https://github.com/mooxphp/core/blob/main/README.md#dynamic-tabs).

Manual Installation
-------------------

[](#manual-installation)

Instead of using the install-command `php artisan localization:install` you are able to install this package manually step by step:

```
// Publish and run the migrations:
php artisan vendor:publish --tag="localization-migrations"
php artisan migrate

// Publish the config file with:
php artisan vendor:publish --tag="localization-config"
```

use it
------

[](#use-it)

We are requiring astrotomic/laravel-translatable to use it see doc:

Changelog
---------

[](#changelog)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](https://github.com/mooxphp/moox/security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance94

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Recently: every ~53 days

Total

9

Last Release

32d ago

Major Versions

0.3.3 → v4.0.0-beta.12025-07-10

4.0.0-beta.3 → 5.0.0-beta2026-02-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40421928?v=4)[Alf Drollinger](/maintainers/adrolli)[@adrolli](https://github.com/adrolli)

---

Top Contributors

[![mooxbot](https://avatars.githubusercontent.com/u/106848579?v=4)](https://github.com/mooxbot "mooxbot (33 commits)")

---

Tags

filamentlanguageslaravellocalizationmultilinguallaravellaravel-packagefilamentfilament-plugin

### Embed Badge

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

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

###  Alternatives

[bezhansalleh/filament-language-switch

Zero config Language Switch(Changer/Localizer) plugin for filamentphp admin

339951.2k13](/packages/bezhansalleh-filament-language-switch)[cactus-galaxy/filament-astrotomic

Filament support for Astrotomic's Laravel Translatable package.

2515.1k](/packages/cactus-galaxy-filament-astrotomic)[stevegrunwell/lost-in-translation

Uncover missing translations and localization strings in Laravel applications

3635.4k](/packages/stevegrunwell-lost-in-translation)

PHPackages © 2026

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