Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/franzose/doctrine-chronos
- Owner: franzose
- License: mit
- Created: 2023-01-03T12:49:51.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-11T06:25:17.000Z (11 months ago)
- Last Synced: 2024-09-15T06:48:59.347Z (2 months ago)
- Topics: cakephp, chronos, dbal, dbal-type, doctrine, doctrine-dbal, doctrine-orm, symfony
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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