ipub / doctrine-timestampable
用于自动更新实体上时间戳字段的属性。
v2.0.0
2024-01-05 09:57 UTC
Requires
- php: >=8.1.0
- doctrine/orm: ^2.6|^3.0
- nette/di: ^3.0|^4.0
- nette/utils: ^3.2|^4.0
Requires (Dev)
- contributte/console: ^0.9
- mockery/mockery: ^1.4
- nette/bootstrap: ^3.1
- nettrine/cache: ^0.3
- nettrine/orm: ^0.8
- ninjify/nunjuck: ^0.3
- ninjify/qa: ^0.12
- pds/skeleton: ~1.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^0.12
- phpstan/phpstan-deprecation-rules: ^0.12
- phpstan/phpstan-doctrine: ^0.12
- phpstan/phpstan-nette: ^0.12
- phpstan/phpstan-strict-rules: ^0.12
- tracy/tracy: ^2.8
README
Timestampable属性将自动更新Nette框架(http://nette.org/)和Doctrine 2(http://www.doctrine-project.org/)中实体上的日期字段。
安装
安装 ipub/doctrine-timestampable 的最佳方法是使用 Composer
composer require ipub/doctrine-timestampable
之后,您需要在config.neon中注册扩展。
extensions: doctrineTimestampable: IPub\DoctrineTimestampable\DI\DoctrineTimestampableExtension
文档
了解如何在 文档 中注册和使用timestampable属性。
主页 https://www.ipublikuj.eu 和仓库 http://github.com/iPublikuj/doctrine-timestampable.