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

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

secretwebmaster/laravel-localization
====================================

Easy localization for Laravel (forked for WNCMS fixes)

v2.4.1(2mo ago)0361MITPHPPHP ^8.4

Since Jan 23Pushed 2mo agoCompare

[ Source](https://github.com/secretwebmaster/laravel-localization)[ Packagist](https://packagist.org/packages/secretwebmaster/laravel-localization)[ Docs](https://github.com/secretwebmaster/laravel-localization)[ RSS](/packages/secretwebmaster-laravel-localization/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (6)Versions (10)Used By (1)

secretwebmaster/laravel-localization
====================================

[](#secretwebmasterlaravel-localization)

This package is a maintained compatibility replacement for `mcamara/laravel-localization`, kept compatible with WNCMS and modern Laravel.

Release line
------------

[](#release-line)

`2.4.x` is the active minor line for the Laravel 13 upgrade track.

- PHP: `^8.4`
- Laravel: `^13.0`
- Testbench: `^11.0`
- PHPUnit: `^12.5`

Why this exists
---------------

[](#why-this-exists)

The upstream package is effectively unmaintained for our use case, while WNCMS depends on locale alias behavior such as `tw -> zh_TW`.

This fork keeps the original namespaces and public APIs so it can remain a drop-in replacement, while carrying the compatibility fixes needed by WNCMS.

What changed in 2.4.x
---------------------

[](#what-changed-in-24x)

- Laravel 13 / PHP 8.4 dependency baseline
- Verified middleware redirect behavior under Laravel 13
- Verified localized URL generation and translated route lookup under Laravel 13
- Fixed translated route generation and lookup when `localesMapping` aliases are used

Compatibility
-------------

[](#compatibility)

- Same namespaces
- Same service provider
- Same facade
- Same config contract
- Intended as a drop-in replacement for `mcamara/laravel-localization`

Validation scope
----------------

[](#validation-scope)

The package now includes Testbench-based coverage for:

- mapped default locale handling with `hideDefaultLocaleInURL`
- translated route URL generation
- translated route lookup from alias-based localized URLs
- session-based locale redirection middleware
- hidden default locale redirection middleware

Composer usage
--------------

[](#composer-usage)

```
composer require secretwebmaster/laravel-localization:^2.4
```

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance86

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

Recently: every ~19 days

Total

9

Last Release

74d ago

PHP version history (3 changes)v2.3.0.1PHP ^8.0

v2.3.0.2PHP ^8.2

2.4.0.x-devPHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16463637?v=4)[secretwebmaster](/maintainers/secretwebmaster)[@secretwebmaster](https://github.com/secretwebmaster)

---

Top Contributors

[![secretwebmaster](https://avatars.githubusercontent.com/u/16463637?v=4)](https://github.com/secretwebmaster "secretwebmaster (9 commits)")

---

Tags

phplaravellocalizationwncms

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mcamara/laravel-localization

Easy localization for Laravel

3.6k9.5M124](/packages/mcamara-laravel-localization)[josiasmontag/laravel-redis-mock

This Laravel package provides a Redis mock for your tests

471.8M19](/packages/josiasmontag-laravel-redis-mock)[jayesh/laravel-gemini-translator

An interactive command to extract and generate Laravel translations using Gemini AI.

712.2k1](/packages/jayesh-laravel-gemini-translator)[josiasmontag/laravel-localization

Localization for Laravel framework

2336.7k](/packages/josiasmontag-laravel-localization)[laurentesc/laravel-subdomain-localization

Subdomain localization support for Laravel

1911.3k](/packages/laurentesc-laravel-subdomain-localization)

PHPackages © 2026

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