kolyasiryk/yii2-date-behavior
最新稳定版本:v1.0.5
Composer 安装命令:
composer require kolyasiryk/yii2-date-behavior
包简介
This behavior makes it easy to save and to take date in correct format.
README 文档
README
Installation
The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json.
To install, either run
$ php composer.phar require kolyasiryk/yii2-date-behavior "*"
or add
"kolyasiryk/yii2-date-behavior": "*"
to the require section of your composer.json file.
Usage
public function behaviors() { return [ [ 'class' => \kolyasiryk\behaviors\DateBehavior::className(), 'datetimeDisplayFormat' => 'php:d.m.Y H:i', 'attributes' => [ 'start_date' => 'datetime', 'end_date' => 'datetime', ], ], ]; }
统计信息
- 总下载量: 24.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-03