PHPackages                             vxm/laravel-view-localization - 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. vxm/laravel-view-localization

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

vxm/laravel-view-localization
=============================

Support dynamic render view by user locale for your Laravel application.

1.0.0(6y ago)44MITPHPPHP ^7.1

Since Jun 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/vuongxuongminh/laravel-view-localization)[ Packagist](https://packagist.org/packages/vxm/laravel-view-localization)[ Docs](https://github.com/vuongxuongminh/laravel-view-localization)[ RSS](/packages/vxm-laravel-view-localization/feed)WikiDiscussions master Synced 4w ago

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

 [ ![](https://avatars0.githubusercontent.com/u/958072) ](https://github.com/laravel)

Laravel View Localization
=========================

[](#laravel-view-localization)

 [![Latest version](https://camo.githubusercontent.com/f1e320251b94f6011a94133f6323675bd3f8843957f6740e86fad6889e927b13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76786d2f6c61726176656c2d766965772d6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vxm/laravel-view-localization) [![Build status](https://camo.githubusercontent.com/4599a3b551af5639c71b580a80504e0ecba1bb34cd059824919ef721d8af5dbd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f76756f6e6778756f6e676d696e682f6c61726176656c2d766965772d6c6f63616c697a6174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/vuongxuongminh/laravel-view-localization) [![Quantity score](https://camo.githubusercontent.com/ce4c4d108c6017c9234d1fa57ad07ee8642b61b3228ad29618aad66c17b053d0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f76756f6e6778756f6e676d696e682f6c61726176656c2d766965772d6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/vuongxuongminh/laravel-view-localization) [![StyleCI](https://camo.githubusercontent.com/cb8772d0104cfec08573327c5026d377efe51046e4ca4bf8acca9c98b23f17af/68747470733a2f2f7374796c6563692e696f2f7265706f732f3139333434343336312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/193444361) [![Total download](https://camo.githubusercontent.com/fe2387ffb40bc0796f8bb8d96f83254eabd1bc829665e3793d3cb6f6c709736a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76786d2f6c61726176656c2d766965772d6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vxm/laravel-view-localization) [![License](https://camo.githubusercontent.com/7fc432187e56564c5f6d8e6f68d115563119cd75479e3943403e73ee29f76d31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f76786d2f6c61726176656c2d766965772d6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vxm/laravel-view-localization)

About it
--------

[](#about-it)

A package support you dynamic render view by user locale for Laravel application.

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

[](#installation)

Require Laravel View Localization using [Composer](https://getcomposer.org):

```
composer require vxm/laravel-view-localization
```

You need to publish the config-file with:

```
php artisan vendor:publish --provider="VXM\ViewLocalization\ViewLocalizationServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
    /**
     * Your source language locale.
     */
    'sourceLocale' => 'en',
];
```

Usage
-----

[](#usage)

It is a way to replace a set of views with another by user locale without the need of touching the original view rendering code. You can use it to systematically change the look and feel of an application depend on user locale. For example, when call `view('about')`, you will be rendering the view file `resources/views/about.blade.php`, if user locale is `vi`, the view file `resources/views/vi/about.blade.php` will be rendered, instead.

> Note: If the application locale is the same as source locale original view will be rendered regardless of presence of translated view.

The package will automatically register itself. Now your application can dynamic render view by user locale.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2509d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8901d64a1059726b851dbdd91463ad1d3169f9dba6a2dcff11d05f97d9bccaea?d=identicon)[vuongxuongminh](/maintainers/vuongxuongminh)

---

Top Contributors

[![vuongxuongminh](https://avatars.githubusercontent.com/u/38932626?v=4)](https://github.com/vuongxuongminh "vuongxuongminh (6 commits)")

---

Tags

laravel-packagelocalizationview-localizationlocalizationl10nlaravel-packagevxmlaravel-view-localization

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vxm-laravel-view-localization/health.svg)

```
[![Health](https://phpackages.com/badges/vxm-laravel-view-localization/health.svg)](https://phpackages.com/packages/vxm-laravel-view-localization)
```

###  Alternatives

[symfony/intl

Provides access to the localization data of the ICU library

2.6k199.8M1.1k](/packages/symfony-intl)[gettext/languages

gettext languages with plural rules

7530.3M10](/packages/gettext-languages)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

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

Aplus Framework Language Library

2351.7M15](/packages/aplus-language)[punic/punic

PHP-Unicode CLDR

1542.9M29](/packages/punic-punic)[aura/intl

The Aura Intl package provides internationalization tools, specifically message translation.

898.3M4](/packages/aura-intl)

PHPackages © 2026

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