PHPackages                             intersvyaz/yii-old-attribute-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. intersvyaz/yii-old-attribute-behavior

ActiveLibrary[Framework](/categories/framework)

intersvyaz/yii-old-attribute-behavior
=====================================

Yii old attribute behavior.

v1.0.0(11y ago)151MITPHPPHP &gt;=5.4.0

Since Mar 23Pushed 11y ago9 watchersCompare

[ Source](https://github.com/intersvyaz/yii-old-attribute-behavior)[ Packagist](https://packagist.org/packages/intersvyaz/yii-old-attribute-behavior)[ RSS](/packages/intersvyaz-yii-old-attribute-behavior/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

yii-old-attribute-behavior
==========================

[](#yii-old-attribute-behavior)

[![Latest Stable Version](https://camo.githubusercontent.com/f62d7104a5ace1082481fa703bd498626ea1c7a8d81e764a176cf0aca5d5f608/68747470733a2f2f706f7365722e707567782e6f72672f696e746572737679617a2f7969692d6f6c642d6174747269627574652d6265686176696f722f762f737461626c652e737667)](https://packagist.org/packages/intersvyaz/yii-old-attribute-behavior) [![Total Downloads](https://camo.githubusercontent.com/7ca367c74936b3eeaa7b70046bf13a88e658f459e9787daf1436ac11e779746e/68747470733a2f2f706f7365722e707567782e6f72672f696e746572737679617a2f7969692d6f6c642d6174747269627574652d6265686176696f722f646f776e6c6f6164732e737667)](https://packagist.org/packages/intersvyaz/yii-old-attribute-behavior) [![Latest Unstable Version](https://camo.githubusercontent.com/c076069b66b922c43dbfba6e4844deb83df01d6872ac61788109cff51bc422e2/68747470733a2f2f706f7365722e707567782e6f72672f696e746572737679617a2f7969692d6f6c642d6174747269627574652d6265686176696f722f762f756e737461626c652e737667)](https://packagist.org/packages/intersvyaz/yii-old-attribute-behavior) [![License](https://camo.githubusercontent.com/1c68baac37587a41e578d99b09aaa63a4ede63c702d04d1bb84f119173f66722/68747470733a2f2f706f7365722e707567782e6f72672f696e746572737679617a2f7969692d6f6c642d6174747269627574652d6265686176696f722f6c6963656e73652e737667)](https://packagist.org/packages/intersvyaz/yii-old-attribute-behavior)

Example usage:

```
class User extends CActiveRecord
{
  /**
   * @inheritdoc
   */
	public function behaviors()
	{
		return array_merge(
			parent::behaviors(),
			[
				'oldBehavior' => ['class' => Intersvyaz\Behavior\OldAttributesBehavior::class],
			]
		);
	}

	/**
	 * @inheritdoc
	 */
	protected function afterSave()
	{
	  if ($this->isModified('username')) {
	      // some your logic
	      $oldValue = $this->old->username;
	      // or
	      $oldValue = $this->oldAttributes['username'];
	      // new value in $this->username
	  }
	  parent::afterSave();
	}
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4074d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03f36c54791162f622dde8344f3008eeb39d52d2eca72f2a4af5516da92579a3?d=identicon)[intersvyaz-it](/maintainers/intersvyaz-it)

![](https://www.gravatar.com/avatar/ae78efa4c27dbb486b41d59fca3d271bc79616fcc6f3bc9859e5a1e9961cd66d?d=identicon)[kikimor](/maintainers/kikimor)

---

Top Contributors

[![psrustik](https://avatars.githubusercontent.com/u/804867?v=4)](https://github.com/psrustik "psrustik (4 commits)")[![kikimor](https://avatars.githubusercontent.com/u/5276246?v=4)](https://github.com/kikimor "kikimor (2 commits)")

### Embed Badge

![Health badge](/badges/intersvyaz-yii-old-attribute-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/intersvyaz-yii-old-attribute-behavior/health.svg)](https://phpackages.com/packages/intersvyaz-yii-old-attribute-behavior)
```

###  Alternatives

[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)[nette/bootstrap

🅱 Nette Bootstrap: the simple way to configure and bootstrap your Nette application.

68535.8M592](/packages/nette-bootstrap)[cakephp/utility

CakePHP Utility classes such as Inflector, String, Hash, and Security

12127.1M63](/packages/cakephp-utility)

PHPackages © 2026

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