New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bastiendonjon/laravel-domain-localization

Laravel 5 domain localization
134 2
Install
composer require bastiendonjon/laravel-domain-localization
Latest Version:v1.0.0
PHP:>=5.4.0
Last Updated:Nov 7, 2015
Links: GitHub  ·  Packagist
Maintainer: bastiendonjon

Laravel 5 domain localization

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

Installation

This package is build for Laravel framework based applications.

Requirements

  • PHP >= 5.4.0
  • Laravel 5+

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

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

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

Related Packages

zagovorichev/laravel-languages

Using different languages in the Laravel

751 0
laravelista/loki

Laravel localization done right.

16,727 78
netstudio/loki

Laravel localization done right.

5,723 0
mcamara/laravel-localization

Easy localization for Laravel

10,576,794 3,556

Version History

Version Released PHP License
v1.0.0 >=5.4.0