PHPackages                             kevindierkx/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. [Templating &amp; Views](/categories/templating)
4. /
5. kevindierkx/view-localization

Abandoned → [mcamara/laravel-localization](/?search=mcamara%2Flaravel-localization)ArchivedLibrary[Templating &amp; Views](/categories/templating)

kevindierkx/view-localization
=============================

Localising views in Laravel

2.0.1(7y ago)05001PHPPHP &gt;=5.6.0

Since Dec 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kevindierkx/view-localization)[ Packagist](https://packagist.org/packages/kevindierkx/view-localization)[ RSS](/packages/kevindierkx-view-localization/feed)WikiDiscussions master Synced 1mo ago

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

Deprecation notice
==================

[](#deprecation-notice)

[mcamara/laravel-localization](https://github.com/mcamara/laravel-localization#set-current-locale-as-view-base-path) now supports using the view base path for your localization making this packages obsolete.

---

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

[](#laravel-view-localization)

This package makes it possible to serve specific views for various locales.

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

[](#installation)

*This package is build for [Laravel framework](http://laravel.com) based applications.*

For Laravel 4.2+ please refer to [version 1.0](https://github.com/kevindierkx/view-localization/tree/1.0).

### Laravel 5.x

[](#laravel-5x)

Require this package with composer:

```
composer require kevindierkx/view-localization

```

### Service provider

[](#service-provider)

Open `config/app.php` and register the required service provider.

```
'providers' => [
    ...
    'Kevindierkx\ViewLocalization\ViewLocalizationServiceProvider'
]
```

Usage
-----

[](#usage)

Localized views are stored in files within the `resources/views` directory. Within this directory there should be a subdirectory for each language supported by the application.

Views that serve as a default should go in the default `resources/views` directory.

```
/resources
    /views
        /nl
            messages.blade.php
    messages.blade.php

```

In the above example the `nl` locale would get a custom view, the `en` locale however would get the default `messages.blade.php` in the `resources/views` directory.

Credits
-------

[](#credits)

- [Kevin Dierkx](https://github.com/kevindierkx)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/kevindierkx/elicit/blob/master/LICENSE) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

2918d ago

Major Versions

0.1.0 → 1.0.x-dev2014-12-09

1.0.x-dev → 2.0.02017-05-17

PHP version history (2 changes)0.1.0PHP &gt;=5.4.0

2.0.0PHP &gt;=5.6.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelphplaravellocalizationview

### Embed Badge

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

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

###  Alternatives

[torann/device-view

Provides support for device based view layouts in Laravel.

146.6k](/packages/torann-device-view)[delatbabel/viewpages

Support rendering/view of Laravel pages and templates from a database.

121.4k](/packages/delatbabel-viewpages)

PHPackages © 2026

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