PHPackages                             lopatin96/lara-locale - 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. lopatin96/lara-locale

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

lopatin96/lara-locale
=====================

1.0.11(1y ago)0209MITPHPPHP &gt;=8.3

Since Mar 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lopatin96/lara-locale)[ Packagist](https://packagist.org/packages/lopatin96/lara-locale)[ RSS](/packages/lopatin96-lara-locale/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

lara-locale
===========

[](#lara-locale)

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

[](#installation)

You can install this package via composer:

```
composer require lopatin96/lara-locale
```

Add middleware to `bootstrap/app.php`

```
->withMiddleware(function (Middleware $middleware) {
    $middleware->appendToGroup('web', [
        SetLocale::class,
    ]);
})
```

Fix your route

```
use Lopatin96\LaraLocale\Helpers\LocaleHelper;

Route::get('/{locale?}', static function () {
    return view('welcome');
})
    ->name('home')
    ->whereIn('locale', LocaleHelper::getAvailableLocales());
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance42

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

12

Last Release

461d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ed7ade2d44e2f66eedf7dec7136ca591145f77d8192bdd789e04797c575d0f3?d=identicon)[Vladyslav Lopatin](/maintainers/Vladyslav%20Lopatin)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/lopatin96-lara-locale/health.svg)

```
[![Health](https://phpackages.com/badges/lopatin96-lara-locale/health.svg)](https://phpackages.com/packages/lopatin96-lara-locale)
```

###  Alternatives

[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.

1927.0k1](/packages/smmoosavi-php-gettext)[saeven/circlical-po-editor

Gettext \*.PO file editor and parser for PHP.

118.1k1](/packages/saeven-circlical-po-editor)

PHPackages © 2026

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