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 6d 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 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

2366d 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

[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

3291.4M10](/packages/kkomelin-laravel-translatable-string-exporter)[vluzrmos/language-detector

Detect the language for your application using browser preferences, subdomains or route prefixes.

109554.8k3](/packages/vluzrmos-language-detector)[opgginc/codezero-laravel-localized-routes

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

2770.1k1](/packages/opgginc-codezero-laravel-localized-routes)[erag/laravel-lang-sync-inertia

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

3812.2k](/packages/erag-laravel-lang-sync-inertia)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)

PHPackages © 2026

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