PHPackages                             gpslab/date-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. gpslab/date-bundle

ActiveLibrary

gpslab/date-bundle
==================

Util for DateTime

v0.2.1(8y ago)1277[3 issues](https://github.com/gpslab/date-bundle/issues)MITPHPPHP &gt;=5.4.0

Since Jan 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gpslab/date-bundle)[ Packagist](https://packagist.org/packages/gpslab/date-bundle)[ Docs](https://github.com/gpslab/date-bundle)[ RSS](/packages/gpslab-date-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (8)Versions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/7302e6ef3f18e8788332b84deadbbd27ff93459901c740e1c8de53d42bbf11e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6770736c61622f646174652d62756e646c652e7376673f6d61784167653d33363030266c6162656c3d737461626c65)](https://packagist.org/packages/gpslab/date-bundle)[![Total Downloads](https://camo.githubusercontent.com/7dadd5dd67187ddc186f17c7992c396f5a09e800c4864beea020b9dd36d3b44e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6770736c61622f646174652d62756e646c652e7376673f6d61784167653d33363030)](https://packagist.org/packages/gpslab/date-bundle)[![Build Status](https://camo.githubusercontent.com/18e87816abeac7509bdfdc9aab8e83164e41aa1763eb34f7ed51764aa4383a54/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6770736c61622f646174652d62756e646c652e7376673f6d61784167653d33363030)](https://travis-ci.org/gpslab/date-bundle)[![Coverage Status](https://camo.githubusercontent.com/17970ccfac1239a3356b16d6677d8d1bd9f2d8319b01dc047adf52c5e682414d/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6770736c61622f646174652d62756e646c652e7376673f6d61784167653d33363030)](https://coveralls.io/github/gpslab/date-bundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5b8f95ce7267715cfb4dabd89a1a403db5ee74fd0990db2d86c2fa6da39c9158/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6770736c61622f646174652d62756e646c652e7376673f6d61784167653d33363030)](https://scrutinizer-ci.com/g/gpslab/date-bundle/?branch=master)[![SensioLabs Insight](https://camo.githubusercontent.com/5bf1c37e351b1e6620f04e1690bea8b16b4e88329aba1a09bcc0c3c4ccfeecdb/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f65303266663762332d663766352d343933652d386166632d3033333137616237666538652e7376673f6d61784167653d33363030266c6162656c3d534c496e7369676874)](https://insight.sensiolabs.com/projects/e02ff7b3-f7f5-493e-8afc-03317ab7fe8e)[![StyleCI](https://camo.githubusercontent.com/e7238da873c7e71500d1f1f6ec10f3f7649ca4b24e6b1c039b6e78ae230957e8/68747470733a2f2f7374796c6563692e696f2f7265706f732f37353734323739302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/75742790)[![License](https://camo.githubusercontent.com/cf1241305bbbcb9a2189eeb529aeb280ca7e3039e15075101470380e4854391a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6770736c61622f646174652d62756e646c652e7376673f6d61784167653d33363030)](https://github.com/gpslab/date-bundle)

Util for DateTime and DateTimeZone
==================================

[](#util-for-datetime-and-datetimezone)

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

[](#installation)

Pretty simple with [Composer](http://packagist.org), run:

```
composer require gpslab/date-bundle
```

Add GpsLabDateBundle to your application kernel

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new GpsLab\Bundle\DateBundle\GpsLabDateBundle(),
        // ...
    );
}
```

Configuration
-------------

[](#configuration)

```
gpslab_date:
    # Is not required
    # As a default used timezone from date_default_timezone_get()
    time_zone: 'Europe/Moscow'

    # HTTP Cookie parameters for store user timezone
    cookie:

        # You can disable use cookie for store user timezone
        used: true

        # HTTP Cookie variable names
        # It's a default values
        name: '_time_zone_name'
        offset: '_time_zone_offset'
```

Documentation
-------------

[](#documentation)

- [Installation](docs/installation.md)
- [Configuration](docs/configuration.md)
- Usage
    - [Converter](docs/usage/converter.md)
    - [Comparator](docs/usage/comparator.md)
    - [Formatter](docs/usage/formatter.md)
    - Timezone
        - [Converter](docs/usage/tz/converter.md)
        - [Comparator](docs/usage/tz/comparator.md)
        - [Keeper](docs/usage/tz/keeper.md)
        - [Custom timezone resolver](docs/usage/tz/resolver.md)
    - [RoundDate](docs/usage/round_date.md)
    - [Twig extension](docs/usage/twig.md)
    - [Util](docs/usage/util.md)

License
-------

[](#license)

This bundle is under the [MIT license](http://opensource.org/licenses/MIT). See the complete license in the file: LICENSE

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~158 days

Total

3

Last Release

3080d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a6415c83577efe7b70d9ae4a3bb12958adc11c16e530ff844ff217b0fd0c54a?d=identicon)[Peter Gribanov](/maintainers/Peter%20Gribanov)

---

Top Contributors

[![peter-gribanov](https://avatars.githubusercontent.com/u/1954436?v=4)](https://github.com/peter-gribanov "peter-gribanov (78 commits)")

---

Tags

datetimephpsymfony-bundle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gpslab-date-bundle/health.svg)

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

PHPackages © 2026

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