PHPackages                             birdsolutions/laravel-language - 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. birdsolutions/laravel-language

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

birdsolutions/laravel-language
==============================

Laravel Route Localization Package

1.1(9y ago)082MITPHP

Since Feb 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mahmoud-birdsol/laravel-language)[ Packagist](https://packagist.org/packages/birdsolutions/laravel-language)[ RSS](/packages/birdsolutions-laravel-language/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Laravel Route Localization Package
==================================

[](#laravel-route-localization-package)

This package will help you localize your routes, set the language from the routes and add some nice functionality to it.

**Installation**

composer require birdsolutions/laravel-language

**Service Provider**Add the service provider to the config/app.php file

```
[
    /*
     * Package Service Providers...
     */
    BirdSolutions\Language\Providers\LanguageServiceProvider::class,
]

```

**Facade**

```
'aliases' => [
    ...
    'Language' => BirdSolutions\Language\Facades\Language::class,
]

```

**Config**Publish the configuration file.

```
    php artisan vendor:publish --provider="BirdSolutions\Language\Providers\LanguageServiceProvider"

```

**Middleware**Add the language Middleware to the routeMiddleware array in kernel.php

```
protected $routeMiddleware = [
       ...
        'language' => \BirdSolutions\Language\Middleware\LanguageMiddleware::class,
    ];

```

**Routes**

```
Route::group([
        'prefix' => \Language::getLocale(),
        'middleware' => 'language'
    ], function () {
        // Add Localized routes here.
    });

```

**Change Language Manually**

```
    Route::any('/language', '\BirdSolutions\Language\Controllers\LanguageController@changeLanguage');

```

It will accept an input of language and set the language to the desired, you can send in get or post inputs.

```
    English

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

Total

2

Last Release

3394d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16209999?v=4)[Mahmoud Mokhtar](/maintainers/mahmoud-birdsol)[@mahmoud-birdsol](https://github.com/mahmoud-birdsol)

---

Top Contributors

[![mahmoud-birdsol](https://avatars.githubusercontent.com/u/16209999?v=4)](https://github.com/mahmoud-birdsol "mahmoud-birdsol (8 commits)")

---

Tags

laravellocalelocalizationroute-localization

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/birdsolutions-laravel-language/health.svg)

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

###  Alternatives

[php-translation/translator

Translator services

25224.8k5](/packages/php-translation-translator)[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.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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