arnissolle / laravel-localization
Laravel localization package
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/arnissolle/laravel-localization
Requires
- php: >=7.1.0
 - laravel/framework: ^5.8.0
 
Requires (Dev)
- phpunit/phpunit: ^8.1
 
This package is auto-updated.
Last update: 2025-10-21 00:34:43 UTC
README
Introduction
The Laravel Localization package is built for Laravel 5.8+ and provides:
- Localized routes with language URL prefixes.
 - Domain based localized routes.
 - Middleware to detect user language based on HTTP header and session.
 - Redirect the user to the localized version.
 - Possibility to hide the language URL prefix for the default language.
 - Possibility to localize a subset of routes only.
 - Language Switcher and Hreflang Meta Tags
 -  Patched 
route()method to use localized routes whenever possible. -  Compatibility with 
artisan route:cache. 
Installation
To get started, use Composer to add the package to your project's dependencies:
composer require arnissolle/laravel-localization
Add the middleware to the web group in App/Http/Kernel.php:
protected $middlewareGroups = [ 'web' => [ // ... \Arnissolle\Localization\Middleware\Handler::class, ], ];