PHPackages                             d3jn/laravel-languages - 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. d3jn/laravel-languages

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

d3jn/laravel-languages
======================

v1.1.0(6y ago)046MITPHPPHP &gt;=7.1.3

Since Jul 26Pushed 6y agoCompare

[ Source](https://github.com/d3jn/laravel-languages)[ Packagist](https://packagist.org/packages/d3jn/laravel-languages)[ RSS](/packages/d3jn-laravel-languages/feed)WikiDiscussions master Synced today

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

> ### This package will no longer be maintained. It is very simple and does what it was created for, so I have no plans on supporting it in the future.
>
> [](#this-package-will-no-longer-be-maintained-it-is-very-simple-and-does-what-it-was-created-for-so-i-have-no-plans-on-supporting-it-in-the-future)

Laravel Languages
=================

[](#laravel-languages)

Very basic package that takes care of handling routing for multilanguage sites. Only basic features with minimum of configuration.

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

This package was developed using Laravel 5.6.

### Installing

[](#installing)

Use composer to install this package:

```
composer require d3jn/laravel-languages

```

`Laravel Package Auto-Discovery` should handle adding service provider and alias for you automatically or you can manually add those to your providers and aliases list in `app.php`:

```
'providers' => [
    ...

    D3jn\LaravelLanguages\LanguagesServiceProvider::class,

    ...
],

...

'aliases' => [
    ...

    'Languages' => D3jn\LaravelLanguages\Facades\Languages::class,

    ...
],
```

Lastly, you should publish it's configuration file:

```
php artisan vendor:publish --provider="D3jn\LaravelLanguages\LanguagesServiceProvider"

```

Now you can proceed with configuring this package for your needs.

### Configuration

[](#configuration)

Open `config/languages.php`. All available configurations are well documented there.

Usage
-----

[](#usage)

Specify callable for properly setting locale in your routes file, for example:

```
Languages::setLocaleCallable(function ($locale) {
    // Example of initializing various packages with locale:
    Carbon::setLocale($locale);
    LaravelGettext::setLocale($locale);
    App::setLocale(LaravelGettext::getLocaleLanguage());
});
```

Then define route group for your application routes and use `Languages::init()` as it's prefix and `languages` middleware:

```
Route::group(
    ['prefix' => Languages::init(), 'middleware' => ['languages']],
    function () {
        Route::get('/', function () {
            return __('hello');
        });

        ...
    }
);
```

Built With
----------

[](#built-with)

- [Laravel](http://laravel.com) - The web framework used

Authors
-------

[](#authors)

- **Serhii Yaniuk** - [d3jn](https://twitter.com/iamdejn)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Every ~247 days

Total

3

Last Release

2352d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32222126?v=4)[Serhii Yaniuk](/maintainers/d3jn)[@d3jn](https://github.com/d3jn)

---

Top Contributors

[![d3jn](https://avatars.githubusercontent.com/u/32222126?v=4)](https://github.com/d3jn "d3jn (3 commits)")

### Embed Badge

![Health badge](/badges/d3jn-laravel-languages/health.svg)

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

###  Alternatives

[mcamara/laravel-localization

Easy localization for Laravel

3.5k9.1M112](/packages/mcamara-laravel-localization)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.3k](/packages/typicms-base)[vemcogroup/laravel-translation

Translation package for Laravel to scan for localisations and up/download to poeditor

135304.0k2](/packages/vemcogroup-laravel-translation)

PHPackages © 2026

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