PHPackages                             jones/language-selector - 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. jones/language-selector

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

jones/language-selector
=======================

v1.0.0(13y ago)1261PHPPHP &gt;=5.3.0

Since Jul 15Pushed 12y ago1 watchersCompare

[ Source](https://github.com/JN-Jones/language-selector)[ Packagist](https://packagist.org/packages/jones/language-selector)[ RSS](/packages/jones-language-selector/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

\#Laravel 4 LanguageSelector

A package for Laravel 4 which sets dynamic the Language for the user

[![Latest Stable Version](https://camo.githubusercontent.com/790eeb19e87463573e51524003b7ecabfbe08813de4150b31422fd74c02e6df2/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6e65732f6c616e67756167652d73656c6563746f722f762f737461626c652e706e67)](https://packagist.org/packages/jones/language-selector)[![Total Downloads](https://camo.githubusercontent.com/8ab652b3eeb5053dd8957fbec2abfa547869a4277be2cf21aa3e70887f6c234a/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6e65732f6c616e67756167652d73656c6563746f722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/jones/language-selector)

\##Contributing If you have any suggestions or improvements feel free to create an issue or create a Pull Request.

\##Installation

Add `jones/language-selector` as a requirement to `composer.json`:

```
{
    ...
    "require": {
        ...
        "jones/language-selector": "dev-master"
        ...
    },
}
```

Update composer:

```
$ php composer.phar update

```

Add the provider to your `app/config/app.php`:

```
'providers' => array(

    ...
    'Jones\LanguageSelector\LanguageSelectorServiceProvider',

),
```

(Optional) Publish package config:

```
$ php artisan config:publish jones/language-selector

```

\##Configuration

- `lang_key`: The key where the language of the user is set

\##How is checked which language is used?

First it is checked whether you entered a language key and if so we try to get the language from the user (You need to use Laravel's Auth class or Sentry and the language have to be the short key, eg 'en'). If we found a valid language we use this. Second we check the "Accept-Language" Header and try to set the language with it. If both failed we use the locale set in the config.

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

4779d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/662f0493303b33636b15c6921b0cb6e798758e9f16b002e2e6eb8bc11d1161af?d=identicon)[Jones](/maintainers/Jones)

---

Top Contributors

[![JN-Jones](https://avatars.githubusercontent.com/u/1917879?v=4)](https://github.com/JN-Jones "JN-Jones (6 commits)")

### Embed Badge

![Health badge](/badges/jones-language-selector/health.svg)

```
[![Health](https://phpackages.com/badges/jones-language-selector/health.svg)](https://phpackages.com/packages/jones-language-selector)
```

###  Alternatives

[illuminate/translation

The Illuminate Translation package.

6938.5M622](/packages/illuminate-translation)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

5031.3k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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