oskarstark/doctrine-postgres-milliseconds-platform
A Doctrine DBAL platform for Postgres with millisecond support
20,786
| 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...
648,266,899
9,701
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
429,221,767
607
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
407,699,310
4,663
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 |