PHPackages                             mlatjac/fren - 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. mlatjac/fren

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

mlatjac/fren
============

Setup bilingual (French and English) Laravel projects easily.

0.0.1(6y ago)07MITPHPCI failing

Since Nov 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mlatjac/FrEn)[ Packagist](https://packagist.org/packages/mlatjac/fren)[ Docs](https://github.com/mlatjac/fren)[ RSS](/packages/mlatjac-fren/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

FrEn
====

[](#fren)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b36697fc125510120dafebfc63c83c4d5bbeee0ee285ae37cf1c3cadf7ab8d8d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6c61746a61632f6672656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mlatjac/fren)[![Total Downloads](https://camo.githubusercontent.com/58aa575bce5ed30fe438487eb84594f56bdff1fd1c175df03827e716f1b5d2cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6c61746a61632f6672656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mlatjac/fren)[![Build Status](https://camo.githubusercontent.com/67af2d0ea7d084c4fb473c49cec879f1699958b93534793b65b1dfe72225698f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d6c61746a61632f6672656e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mlatjac/fren)[![StyleCI](https://camo.githubusercontent.com/45c38fe787f3539a1c5681241b2c66de0cda5374cec9c299a6b42cf680715868/68747470733a2f2f7374796c6563692e696f2f7265706f732f3232323536353030342f736869656c64)](https://styleci.io/repos/222565004)

Laravel package that supplies language tracking and language switching services and pulls in commonly used multi-language packages to create a sane basis for bilingual (French and English) Laravel apps.

Take a look at [contributing.md](contributing.md) to see a to do list.

Installation
------------

[](#installation)

Via Composer

```
$ composer require mlatjac/fren
```

Usage
-----

[](#usage)

### Language middleware

[](#language-middleware)

The Language middleware sets the app's current locale to the currently selected language.

The package inserts this middleware in the middleware stack for all web routes.

To specifically invoke this middleware on a route, you can use its 'lang' alias, as in:

```
Route::get('/', function () {
    return view('welcome');
})->middleware('lang');
```

### Language switching routes

[](#language-switching-routes)

This package registers language switching routes. These routes update the currently selected language and redirect back to the calling url.

The url '/lang/en' will switch the current language to English, the '/lang/fr' will switch the current language to French.

Use its route name 'lang.switch' along with its languageCode parameter with url builders, as in:

```
url(route('lang.switch',['languageCode' => 'en']))
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [author name](https://github.com/mlatjac)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

2412d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28148220?v=4)[mlatjac](/maintainers/mlatjac)[@mlatjac](https://github.com/mlatjac)

---

Top Contributors

[![mlatctrlweb](https://avatars.githubusercontent.com/u/44507114?v=4)](https://github.com/mlatctrlweb "mlatctrlweb (3 commits)")[![mlatjac](https://avatars.githubusercontent.com/u/28148220?v=4)](https://github.com/mlatjac "mlatjac (2 commits)")

---

Tags

laravelFrEn

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mlatjac-fren/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M193](/packages/laravel-ai)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[bezhansalleh/filament-language-switch

Zero config Language Switch(Changer/Localizer) plugin for filamentphp admin

3581.3M28](/packages/bezhansalleh-filament-language-switch)[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.

4925.3k](/packages/erag-laravel-lang-sync-inertia)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1963.4k](/packages/ublabs-blade-simple-icons)

PHPackages © 2026

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