PHPackages                             sourecode/timezone-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sourecode/timezone-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

sourecode/timezone-bundle
=========================

A Symfony bundle for managing timezones in applications.

v0.2.0(11mo ago)02541MITPHPPHP &gt;=8.3CI passing

Since Mar 18Pushed 11mo agoCompare

[ Source](https://github.com/SoureCode/TimezoneBundle)[ Packagist](https://packagist.org/packages/sourecode/timezone-bundle)[ RSS](/packages/sourecode-timezone-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (16)Versions (4)Used By (1)

sourecode/timezone-bundle
=========================

[](#sourecodetimezone-bundle)

[![Packagist Version](https://camo.githubusercontent.com/093e6802c00a0b6d879d9665ab15d14a7b1c858001778379830df5359ef576fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f757265636f64652f74696d657a6f6e652d62756e646c652e737667)](https://packagist.org/packages/sourecode/timezone-bundle)[![Downloads](https://camo.githubusercontent.com/88190d91aa334501bacf294adeaaf26ffe5b5e175dba1e60df5aa16a903ae4ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f757265636f64652f74696d657a6f6e652d62756e646c652e737667)](https://packagist.org/packages/sourecode/timezone-bundle)[![CI](https://github.com/SoureCode/TimezoneBundle/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/SoureCode/TimezoneBundle/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/45b53da07cdfd299c6b0e2e90c16ae2ee483e86a3a8c3ad7e9f4b50fb5339ec7/68747470733a2f2f636f6465636f762e696f2f67682f536f757265436f64652f54696d657a6f6e6542756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d33383632595a4e473837)](https://codecov.io/gh/SoureCode/TimezoneBundle)[![Mutation testing badge](https://camo.githubusercontent.com/8aef35288d8b84d1f7c539a67b73cf90eec716e869db2da9e2df81c5c59e2edf/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246536f757265436f646525324654696d657a6f6e6542756e646c652532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/SoureCode/TimezoneBundle/master)

This bundle provides a simple way to manage timezones in Symfony applications. Unfortunately, there is no way to set the timezone in the request object, so you have to get it from the `TimezoneManager`. Except from that, the usage is pretty simple and the same as for the locale.

- [License](./LICENSE)

Installation
------------

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
composer require sourecode/timezone-bundle
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

#### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require sourecode/timezone-bundle
```

#### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    \SoureCode\Bundle\Timezone\SoureCodeTimezoneBundle::class => ['all' => true],
];
```

Config
------

[](#config)

```
# config/packages/soure_code_timezone.yaml
soure_code_timezone:
    # if default_timezone is empty, the default timezone is 'UTC'
    default_timezone: 'Asia/Tokyo'
    # if enabled_timezones is empty, all timezones are enabled
    enabled_timezones: ['UTC', 'Europe/Berlin', 'Asia/Tokyo', 'Australia/Sydney']
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance50

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Total

3

Last Release

352d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21c0769c766e96c15aaf9886ddecfd66dd525e55d754f18ffbe67c9277ffe43a?d=identicon)[chapterjason](/maintainers/chapterjason)

---

Top Contributors

[![chapterjason](https://avatars.githubusercontent.com/u/1337562?v=4)](https://github.com/chapterjason "chapterjason (18 commits)")

---

Tags

symfony-bundletimezone

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sourecode-timezone-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sourecode-timezone-bundle/health.svg)](https://phpackages.com/packages/sourecode-timezone-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
