arokettu / date-doctrine
Doctrine support for arokettu/date
2.1.1
2024-07-28 19:23 UTC
Requires
- php: ^8.2
- arokettu/date: ^1.0 | ^2.0
- doctrine/dbal: ^4.0
Requires (Dev)
- phpunit/phpunit: ^10.5.11
- sandfox.dev/code-standard: ^1.2023.12.09
- squizlabs/php_codesniffer: *
- vimeo/psalm: ^5.22.2
README
arokettu/date
row classes and ID generators for Doctrine.
Installation
composer require arokettu/date-doctrine
- Version 1.x is for
doctrine/dbal
v3 - Version 2.x is for
doctrine/dbal
v4
The versions are fully interchangeable except for hard dependency on DBAL.
Usage
<?php use Arokettu\Date\Date; use Doctrine\ORM\Mapping\{Column,Table}; #[Entity, Table(name: 'date_object')] class DateObject { #[Column(type: DateType::NAME)] public Date $date; }
Documentation
Read full documentation for the base library here: https://sandfox.dev/php/date.html
Also on Read the Docs: https://php-date.readthedocs.io/
Support
Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/php-date/-/issues
Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community
License
The library is available as open source under the terms of the MIT License.