humandirect / locale-bundle
A slim bundle for switching languages
Installs: 88
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.2
- ext-intl: *
- psr/log: ^1.1|^2.0|^3.0
- symfony/framework-bundle: ^7.0
- symfony/intl: ^7.0
- symfony/templating: ^7.0
- symfony/validator: ^7.0
- symfony/yaml: ^7.0
- webmozart/assert: ^1.10
Requires (Dev)
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.0
- phpstan/phpstan-doctrine: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-symfony: ^1.0
- phpstan/phpstan-webmozart-assert: ^1.0
- symfony/phpunit-bridge: ^7.0
- twig/twig: ^3.0
README
This bundle allows you to guess the Locale from different parameters in your Symfony applications.
Background
The locale can be guessed from different parameters in your applications :
- In the
Query
parameter - In the
Route
parameters - In the
Browser
preferences - In a
Cookie
or theSession
if the locale has already been identified - In the
Request Header
parameter - Based on the
Subdomain
hostname
Authors
- The Human Direct team: https://www.humandirect.eu
- Matthias Breddin : @lunetics
- Christophe Willemsen : @kwattro