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

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

webapp/localization
===================

Simple laravel localization package

v2.0.0(5y ago)019MITPHPPHP ^7.3|^8.0CI failing

Since Jun 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/reyadkhan/laravelLocalization)[ Packagist](https://packagist.org/packages/webapp/localization)[ RSS](/packages/webapp-localization/feed)WikiDiscussions master Synced 5d ago

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

### Simple localization package for Laravel

[](#simple-localization-package-for-laravel)

It will switch locale according to **url** parameter or user's language

#### Requirements:

[](#requirements)

- PHP &gt;= 7.2.5
- Laravel &gt;= 6.0

#### Installation:

[](#installation)

- Run composer command:

```
composer require webapp/localization

```

- To publish `localization.php` config file run the command:

```
php artisan vendor:publish --tag=config

```

Change the `available_locales` from config file according to your application locales.

- Put `@include('localization::combo')` in your layout view, where user can change the locale.

> That's all for primary setup. Enjoy...

#### Advance uses:

[](#advance-uses)

- To publish the localization combo box in your views directory, run the command:

```
php artisan vendor:publish --tag=view

```

It will create a view file under `resources/views/vendor/localization` directory. There is a form inside the `combo.blade.php` view file. You can change the form if needed.

You can edit the `config/localization.php` file as your need. The `query_var` is the url parameter variable. If you want to set locale in english then you can pass lang=en as the parameter with url.

`Ex: http://localhost:8000?lang=en`
You can change the `query_var`. By default it is `lang`.

> It stores user's **locale** in session. So from next request it will take user locale from session. **Session key**(session\_key) is also configured under the config file. You can change the key if needed.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~55 days

Total

6

Last Release

1930d ago

Major Versions

v1.2.0 → v2.0.02021-02-01

PHP version history (2 changes)v1.0.0PHP ^7.2.5

v2.0.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f95f96af0c08f223e370c3e2ba48cf8d0f5a29a5de97aa9144e93b4c5f891250?d=identicon)[WebCode](/maintainers/WebCode)

---

Top Contributors

[![reyadkhan](https://avatars.githubusercontent.com/u/13221780?v=4)](https://github.com/reyadkhan "reyadkhan (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[vluzrmos/language-detector

Detect the language for your application using browser preferences, subdomains or route prefixes.

109554.8k3](/packages/vluzrmos-language-detector)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)[highsolutions/laravel-translation-manager

Manage Laravel Translations

1518.8k](/packages/highsolutions-laravel-translation-manager)[amendozaaguiar/laraveles-spanish-for-jetstream

Archivos de traducción al español latinoamericano para Laravel con Jetstream (auth, pagination, passwords, validation + todas las cadenas de Jetstream).

1412.1k](/packages/amendozaaguiar-laraveles-spanish-for-jetstream)

PHPackages © 2026

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