##UnixTimeStamp Behavior for CakePHP 3.x
This is modified version of default CakePHP Timestamp
Behavior but it save unix timestamp integer
into created
or modified
fields
only changed return
statement in timestamp
method in default behavior
##Install Steps:
- Copy
UnixTimestampBehavior.php
in/src/Model/Behavior/
or in your plugin behavior - Go to your table models in
/src/Model/Table
- Add behavior in to Table
initialize
method :
$this->addBehavior('UnixTimestamp');
- Done!