PHPackages                             bastiendonjon/laravel-domain-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. bastiendonjon/laravel-domain-localization

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

bastiendonjon/laravel-domain-localization
=========================================

Laravel 5 domain localization

v1.0.0(10y ago)2134[1 issues](https://github.com/bastiendonjon/laravel-domain-localization/issues)PHPPHP &gt;=5.4.0

Since Nov 7Pushed 10y ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel 5 domain localization
=============================

[](#laravel-5-domain-localization)

A tool for easy domain based localization in Laravel 5 applications.

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

[](#installation)

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

### Requirements

[](#requirements)

- PHP &gt;= 5.4.0
- Laravel 5+

### Composer installation

[](#composer-installation)

You must modify your `composer.json` file and run `composer update` to include the latest version of the package in your project:

```
"require": {
    "bastiendonjon/laravel-domain-localization": "1.0.*"
}
```

Or you can run the `composer require` command from your terminal:

```
composer require bastiendonjon/laravel-domain-localization:1.0.x

```

### Service provider

[](#service-provider)

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

```
'providers' => [
    BastienDonjon\LaravelDomainLocalization\Provider\DomainLocalizationServiceProvider:class,
]
```

Make config file :

```
php artisan vendor:publish"

```

Usage
-----

[](#usage)

Th Laravel Domain Localization get tld to switch locale. See config file to match tdl with locale.

For example, when you add the dutch locale `fr` the user could access two different locales, using the following addresses:

```
http://example.com
http://example.fr

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

3846d ago

### Community

Maintainers

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

---

Top Contributors

[![bastiendonjon](https://avatars.githubusercontent.com/u/3437591?v=4)](https://github.com/bastiendonjon "bastiendonjon (14 commits)")

---

Tags

localizationproviderdomainbastiendonjon

### Embed Badge

![Health badge](/badges/bastiendonjon-laravel-domain-localization/health.svg)

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

###  Alternatives

[symfony/intl

Provides access to the localization data of the ICU library

2.6k199.8M1.1k](/packages/symfony-intl)[mcamara/laravel-localization

Easy localization for Laravel

3.5k9.1M112](/packages/mcamara-laravel-localization)[commerceguys/addressing

Addressing library powered by CLDR and Google's address data.

95630.2M43](/packages/commerceguys-addressing)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[laravel-lang/locales

Basic functionality for working with localizations

134.5M12](/packages/laravel-lang-locales)[kevindierkx/laravel-domain-localization

Laravel domain localization

286.0k](/packages/kevindierkx-laravel-domain-localization)

PHPackages © 2026

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