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

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

aharen/language
===============

Multi language for Laravel 5.3+

v1.0.6(8y ago)1280MITPHPPHP &gt;=5.4.0

Since Sep 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/aharen/Language)[ Packagist](https://packagist.org/packages/aharen/language)[ RSS](/packages/aharen-language/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (7)Used By (0)

Language
========

[](#language)

Multi language for Laravel 5.3+

---

Installations
-------------

[](#installations)

`composer require aharen/language`

Configuration
-------------

[](#configuration)

Add the service provider to `providers` array in `config/app.php`

`aharen\Language\LanguageServiceProvider::class,`

Add the facade to `aliases` array in `config/app.php`

`'Language' => 'aharen\Language\Facades\Language::class',`

Run `vendor:publish` artisan command to publish the database migration file and the default seeder

`php artisan vendor:publish`

Now add the `DefaultLanguageSeeder` to `database/DatabaseSeeder.php`

`$this->call(DefaultLanguageSeeder::class);`

You might need to run `composer dumpautoload` for the seeder to start working

**Optional** The provided seeder will create English as the default language but you can change the seeder to any language you like.

In addition you will have to update `locale` and `fallback_locale` in `config/app.php` to your desired default language, since the package uses these to maintain set locale and default locale.

This will enable the use of Laravels default localization methods and directives such as 'echo trans('messages.welcome');`and`@lang('messages.welcome')`. You can store your translations in the default `resources/lang` directory.

Setup
-----

[](#setup)

You should add a route prefix to your routes in one of the following ways:

1. In your routes file to the route group

    ```
     Route::group(['prefix' => \App::getLocale()], function () {
       // your routes here
     });

    ```
2. Or you can modify `mapWebRoutes()` method in `App\RouteServiceProvider` as follows:

    ```
     Route::group([
         'middleware' => 'web',
         'namespace'  => $this->namespace,
         'prefix'     => \App::getLocale(),
     ], function ($router) {
         require base_path('routes/web.php');
     });

    ```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Recently: every ~60 days

Total

6

Last Release

3177d ago

### Community

Maintainers

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

---

Top Contributors

[![aharen](https://avatars.githubusercontent.com/u/46440?v=4)](https://github.com/aharen "aharen (12 commits)")

---

Tags

laravellanguagetranslatemulti-lingual

### Embed Badge

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

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

###  Alternatives

[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

544656.8k4](/packages/codezero-laravel-localized-routes)[outl1ne/nova-translatable

A laravel-translatable extension for Laravel Nova.

202451.8k8](/packages/outl1ne-nova-translatable)[longman/laravel-multilang

Package to integrate multi language (multi locale) functionality in Laravel 5.x

5414.5k1](/packages/longman-laravel-multilang)

PHPackages © 2026

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