PHPackages                             t-kanstantsin/yii2-author-behavior - 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. [Framework](/categories/framework)
4. /
5. t-kanstantsin/yii2-author-behavior

ActiveYii2-extension[Framework](/categories/framework)

t-kanstantsin/yii2-author-behavior
==================================

Author behavior for Yii 2 framework.

0114PHP

Since Dec 23Pushed 10y agoCompare

[ Source](https://github.com/t-kanstantsin/yii2-author-behavior)[ Packagist](https://packagist.org/packages/t-kanstantsin/yii2-author-behavior)[ RSS](/packages/t-kanstantsin-yii2-author-behavior/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Author behavoir
===============

[](#author-behavoir)

Behavior represents additional functionality similar to yii\\db\\TimestampBehavior but automatically fills the specified attributes with the current user id or value defined in `value` field.

Install
-------

[](#install)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require --prefer-dist t-kanstantsin/yii2-author-behavior "*"
```

or add

```
"t-kanstantsin/yii2-author-behavior": "*"
```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Example behavior configuration:

```
    // in `behaviors` method
    [
        'class' => tkanstantsin\yii2\behaviors\AuthorBehavior::class,
        'createdByAttribute' => 'created_by_id',
        'updatedByAttribute' => 'updated_by_id',
    ],
```

Credits
-------

[](#credits)

- [Konstantin Timoshenko](https://github.com/t-kanstantsin)

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

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://www.gravatar.com/avatar/d4163e3f004a6097faad7270c284f429841e2a3d66db295c386d646181e6fd0a?d=identicon)[tkanstantsin](/maintainers/tkanstantsin)

---

Top Contributors

[![k-timoshenko](https://avatars.githubusercontent.com/u/3259675?v=4)](https://github.com/k-timoshenko "k-timoshenko (6 commits)")

### Embed Badge

![Health badge](/badges/t-kanstantsin-yii2-author-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/t-kanstantsin-yii2-author-behavior/health.svg)](https://phpackages.com/packages/t-kanstantsin-yii2-author-behavior)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M290](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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