lunetics / timezone-bundle
A Bundle for detecting the timezone
Installs: 41 887
Dependents: 0
Suggesters: 0
Security: 0
Stars: 26
Watchers: 4
Forks: 11
Open Issues: 3
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony/framework-bundle: >=2.2
- symfony/validator: ~2.1
- symfony/yaml: ~2.1
Requires (Dev)
- ext-intl: *
Suggests
- ext-geoip: *
- ext-intl: Always a good idea :)
This package is auto-updated.
Last update: 2024-11-12 19:45:50 UTC
README
The TimezoneBundle adds support for guessing a appropiate Timezone serverside in your Symfony 2.1 application.
About
This Bundle offers Timezone detection via a Kernel-listener. Also included is a TimezoneValidator.
Included are 3 TimezoneGuessers
- geoip
- locale_mapper
- locale
You can define the order of which guesser should be called first. Once a guesser finds a appropiate timezone, the timezone will be stored in the session variable lunetics_timezone.
Requirements
To use the geoip guesser and the locale guesser, the pecl-geoip extension must be installed and working.
Documentation
Installation
License
This bundle is under the MIT license.
Authors
Matthias Breddin : @lunetics