Download the PHP package horat1us/yii2-carbon-behavior without Composer
On this page you can find all versions of the php package horat1us/yii2-carbon-behavior. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download horat1us/yii2-carbon-behavior
More information about horat1us/yii2-carbon-behavior
Files in horat1us/yii2-carbon-behavior
Download horat1us/yii2-carbon-behavior
More information about horat1us/yii2-carbon-behavior
Files in horat1us/yii2-carbon-behavior
Vendor horat1us
Package yii2-carbon-behavior
Short Description Yii2 Carbon Timestamps Behavior
License MIT
Package yii2-carbon-behavior
Short Description Yii2 Carbon Timestamps Behavior
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-carbon-behavior
Yii2 Carbon Behavior
Behavior to generate timestamps (created_at, updated_at etc.) using Carbon instance.
Main purpose of using Carbon (instead of native time()
function, implemented in \yii\behaviors\TimestampBehavior
)
is ability to mock this values without tricks (using Carbon::setTestNow()
).
Used in real projects with MySQL and PostgreSQL.
Installation
Using packagist.org:
Usage
To generate timestamps using Carbon
in followed example created_at and updated_at attributes will be filled with date and time generated using Carbon class.
License
MIT
All versions of yii2-carbon-behavior with dependencies
PHP Build Version
Package Version
The package horat1us/yii2-carbon-behavior contains the following files
Loading the files please wait ....