/TimezoneBundle

A Symfony2 Bundle for Serverside Timezone detection

Primary LanguagePHP

TimezoneBundle

The TimezoneBundle adds support for guessing a appropiate Timezone serverside in your Symfony 2.1 application.

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage

Latest Unstable Version Total Downloads License

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

Read the Documentation

Installation

Read the Documentation

License

This bundle is under the MIT license.

Authors

Matthias Breddin : @lunetics