Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/franzose/doctrine-chronos

Doctrine DBAL types for CakePHP Chronos
https://github.com/franzose/doctrine-chronos

cakephp chronos dbal dbal-type doctrine doctrine-dbal doctrine-orm symfony

Last synced: 7 days ago
JSON representation

Doctrine DBAL types for CakePHP Chronos

Awesome Lists containing this project

README

        

# Doctrine + Chronos = ❤️
[Chronos](https://github.com/cakephp/chronos) is an implementation of enriched, immutable date/time objects. This repository provides four custom Doctrine DBAL date/time types: `chronos`, `chronostz`, `chronos_date`, and `chronos_time`. Use them in case you want to replace standard `DateTimeImmutable` objects with instances of `Cake\Chronos\Chronos`, `Cake\Chronos\ChronosDate`, and `Cake\Chronos\ChronosTime` respectively in your entities.

## Registration & Usage

Register the types with the following lines:
```php