oskarstark/doctrine-postgres-milliseconds-platform
A Doctrine DBAL platform for Postgres with millisecond support
20,549
| Install | |
|---|---|
composer require oskarstark/doctrine-postgres-milliseconds-platform |
|
| Latest Version: | 2.4.0 |
| PHP: | >=8.1 |
| License: | MIT |
| Last Updated: | Feb 6, 2026 |
| Links: | GitHub · Packagist |
Maintainer: OskarStark
doctrine-postgres-milliseconds-platform
| Branch | PHP |
|---|---|
master |
Usage
Installation
composer require oskarstark/doctrine-postgres-milliseconds-platform
Setup
# config/packages/doctrine.yaml
doctrine:
dbal:
# We want to store DateTime objects with milliseconds
# The solution is built on https://github.com/doctrine/dbal/issues/2873#issuecomment-701052412
# but instead of using microseconds we use milliseconds
platform_service: Datana\Doctrine\PostgreSQL\Platform\Doctrine\DBAL\Platforms\PostgreSQLMillisecondsPlatform
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
641,106,524
9,700
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
418,291,778
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 2.4.0 | >=8.1 | MIT | |
| 2.3.1 | >=8.1 | MIT | |
| 2.3.0 | >=8.1 | MIT | |
| 2.2.0 | >=8.1 | MIT | |
| 2.1.0 | >=7.4 | MIT |