PHPackages                             trex/yii-artimestamps - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. trex/yii-artimestamps

ActiveYii-component[Database &amp; ORM](/categories/database)

trex/yii-artimestamps
=====================

Timestamps created\_at and updated\_at with date format for ActiveRecord

1186PHP

Since Dec 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tekoraik/trex-yii-artimestamps)[ Packagist](https://packagist.org/packages/trex/yii-artimestamps)[ RSS](/packages/trex-yii-artimestamps/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

trex-yii-artimestamps
=====================

[](#trex-yii-artimestamps)

Timestamps created\_at and updated\_at with date format for ActiveRecord

Instalation
===========

[](#instalation)

Via composer:

```
composer require trex/yii-artimestamps
```

or add this lines in your composer.json:

```
"trex/yii-artimestamps": "*"
```

Usage
=====

[](#usage)

1\. Add a create column and update column in your table

2\. Add the behavior in your ActiveRecord

```
public function behaviors()
{
    return [
        "timestamp" => [
            'class' => \trex\yii\artimestamps\TimestampBehavior::className(),
            'createdAtField' => '{{ my create field }}',
            'updatedAtField' => '{{ my update field }}',
            'format' => 'Y-m-d H:i:s' //this is optional
        ]
    ];
}
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3136309?v=4)[Jose Luis](/maintainers/tekoraik)[@tekoraik](https://github.com/tekoraik)

---

Top Contributors

[![tekoraik](https://avatars.githubusercontent.com/u/3136309?v=4)](https://github.com/tekoraik "tekoraik (11 commits)")

### Embed Badge

![Health badge](/badges/trex-yii-artimestamps/health.svg)

```
[![Health](https://phpackages.com/badges/trex-yii-artimestamps/health.svg)](https://phpackages.com/packages/trex-yii-artimestamps)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
