PHPackages                             adrenalinkin/doctrine-utc-date-time - 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. [Database &amp; ORM](/categories/database)
4. /
5. adrenalinkin/doctrine-utc-date-time

ActiveLibrary[Database &amp; ORM](/categories/database)

adrenalinkin/doctrine-utc-date-time
===================================

Provides Doctrine DBAL date and time types for storing in UTC format into database

v2.0.0(3y ago)534.7k↓20%3[1 issues](https://github.com/adrenalinkin/doctrine-utc-date-time/issues)[1 PRs](https://github.com/adrenalinkin/doctrine-utc-date-time/pulls)MITPHPPHP ^7.1 || ^8.0

Since Jul 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/adrenalinkin/doctrine-utc-date-time)[ Packagist](https://packagist.org/packages/adrenalinkin/doctrine-utc-date-time)[ RSS](/packages/adrenalinkin-doctrine-utc-date-time/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

Doctrine UTC Date Time [![На Русском](https://camo.githubusercontent.com/feb4c9ee227a5ee3a5d4e83a8a5b888b2e4b666d6cc2fb985c3bf404f8f271ac/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2544302539462544302542352544312538302544302542352544302542392544312538322544302542385f2544302542442544302542302d2544302541302544312538332544312538312544312538312544302542412544302542382544302542392d677265656e2e7376673f7374796c653d666c61742d737175617265)](./README.RU.md)
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#doctrine-utc-date-time-)

[![PHPUnit](https://github.com/adrenalinkin/doctrine-utc-date-time/workflows/UnitTests/badge.svg)](https://github.com/adrenalinkin/doctrine-utc-date-time/actions/workflows/unit-tests.yml)[![Coverage Status](https://camo.githubusercontent.com/7cfb9707390989ba4f9768ecf56adc89a8cfe5d0520d0ea1082d411da2dc4b77/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f616472656e616c696e6b696e2f646f637472696e652d7574632d646174652d74696d652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/adrenalinkin/doctrine-utc-date-time?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/dd815f51685ecdc87e9389ee5b8fd4a7c56eb7cb42ca30dfc31b4828c962175a/68747470733a2f2f706f7365722e707567782e6f72672f616472656e616c696e6b696e2f646f637472696e652d7574632d646174652d74696d652f762f737461626c65)](https://packagist.org/packages/adrenalinkin/doctrine-utc-date-time)[![Total Downloads](https://camo.githubusercontent.com/e977f1fb858f3de1c9bc7115356795aae23dacd648c9af34347b952dbefa1560/68747470733a2f2f706f7365722e707567782e6f72672f616472656e616c696e6b696e2f646f637472696e652d7574632d646174652d74696d652f646f776e6c6f616473)](https://packagist.org/packages/adrenalinkin/doctrine-utc-date-time)

Introduction
------------

[](#introduction)

Component contains `DBAL` types for date and time and can be registered as `Doctrine` types. `DBAL` types provides functionality for storing date and time into database in the `UTC`. List of the available types:

- [UtcDateTimeType.php](DBAL/Types/UtcDateTimeType.php)
- [UtcDateType.php](DBAL/Types/UtcDateType.php)
- [UtcTimeType.php](DBAL/Types/UtcTimeType.php)

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

[](#installation)

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

```
    composer require adrenalinkin/doctrine-utc-date-time
```

*This command requires you to have [Composer](https://getcomposer.org) install globally.*

Usage
-----

[](#usage)

For registration new `Doctrine` type use official instruction [How to Use Doctrine DBAL](https://symfony.com/doc/current/doctrine/dbal.html).

For registration new separate UTC types:

```
# app/config/config.yml
doctrine:
    dbal:
        types:
            utc_date:     Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateType
            utc_datetime: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateTimeType
            utc_time:     Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcTimeType
```

Also, you can overwrite standard types:

```
# app/config/config.yml
doctrine:
    dbal:
        types:
            date:     Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateType
            datetime: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateTimeType
            time:     Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcTimeType
```

License
-------

[](#license)

[![license](https://camo.githubusercontent.com/458425f8985b0b0c8a736cffe75e05a098e3d77906acddbcad2bfc54492a4e02/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)](./LICENSE)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~265 days

Recently: every ~306 days

Total

8

Last Release

1366d ago

Major Versions

v1.2.1 → v2.0.02022-08-21

PHP version history (5 changes)v1.0.0PHP &gt;=5.4

v1.0.2PHP ~5.4||~7.0

v1.1.0PHP ^7.1

v1.2.0PHP &gt;=7.1

v2.0.0PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d1657e0d4e48467a707a40246d5270352fef37f362e488a995ff5c3e134c7c6?d=identicon)[adrenalinkin](/maintainers/adrenalinkin)

---

Top Contributors

[![adrenalinkin](https://avatars.githubusercontent.com/u/4967813?v=4)](https://github.com/adrenalinkin "adrenalinkin (15 commits)")[![dharple](https://avatars.githubusercontent.com/u/4107745?v=4)](https://github.com/dharple "dharple (1 commits)")[![pavelkirpitsov](https://avatars.githubusercontent.com/u/101108921?v=4)](https://github.com/pavelkirpitsov "pavelkirpitsov (1 commits)")

---

Tags

doctrine-dbaldoctrine-utcsymfony-componentutc-datetimesymfony-componentdoctrine-dbaldoctrine-utcutc-datetime

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/adrenalinkin-doctrine-utc-date-time/health.svg)

```
[![Health](https://phpackages.com/badges/adrenalinkin-doctrine-utc-date-time/health.svg)](https://phpackages.com/packages/adrenalinkin-doctrine-utc-date-time)
```

###  Alternatives

[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[jackalope/jackalope-doctrine-dbal

Jackalope Transport library for Doctrine DBAL

1503.0M214](/packages/jackalope-jackalope-doctrine-dbal)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)

PHPackages © 2026

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