Download the PHP package orkhanahmadov/laravel-accept-language-middleware without Composer
On this page you can find all versions of the php package orkhanahmadov/laravel-accept-language-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download orkhanahmadov/laravel-accept-language-middleware
More information about orkhanahmadov/laravel-accept-language-middleware
Files in orkhanahmadov/laravel-accept-language-middleware
Package laravel-accept-language-middleware
Short Description Laravel middleware for setting application locale based on HTTP Accept-Language header
License MIT
Homepage https://github.com/orkhanahmadov/laravel-accept-language-middleware
Informations about the package laravel-accept-language-middleware
Laravel "Accept-Language" middleware
Laravel middleware for automatically setting application locale based on HTTP "Accept-Language" header
Requirements
- PHP 8.2 or higher.
- Laravel ^11.0 or ^12.0.
Installation
You can install the package via composer:
Usage
Register \Orkhanahmadov\LaravelAcceptLanguageMiddleware\Middleware::class
middleware in application's HTTP Kernel.
You can install it as global middleware in Kernel's $middleware
property:
You can install it to specific middleware groups in Kernel's $middlewareGroups
property:
Or you can install is as route middleware in Kernel's $routeMiddleware
and use it manually in routes:
Kernel:
Route file
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Orkhan Ahmadov
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-accept-language-middleware with dependencies
illuminate/contracts Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0