PHPackages                             deesoft/yii2-tools - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. deesoft/yii2-tools

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

deesoft/yii2-tools
==================

Yii2 application tools

1.0(10y ago)0481↓84.6%BSD-3-ClausePHP

Since Apr 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/deesoft/yii2-tools)[ Packagist](https://packagist.org/packages/deesoft/yii2-tools)[ RSS](/packages/deesoft-yii2-tools/feed)WikiDiscussions master Synced 3w ago

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

yii2-tools
==========

[](#yii2-tools)

Yii2 Tools

Installation
------------

[](#installation)

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

Either run

```
php composer.phar require deesoft/yii2-tools "~1.0"

```

or add

```
"deesoft/yii2-tools": "~1.0"

```

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

AutoHandlerBehavior
-------------------

[](#autohandlerbehavior)

Define event handler in self class.

```
class User extends ActiveRecord
{
    public function onBeforeSave($event)
    {
        // execute at event beforeSave
        // do someting
    }

    public function behaviors()
    {
        return [
            'dee\tools\AutoHandlerBehavior',
        ];
    }
}
```

State
-----

[](#state)

Save information of client(browser).

```
// config
'components' => [
    ...
    'profile' => 'dee\tools\State',
]
```

Usage
-----

[](#usage)

```
// this information is unique per client.
Yii::$app->profile->address = 'Jl. Buntu No 3426 Lamongan';

echo Yii::$app->profile->address;
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3717d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a5ba97416867dd2bff6c4e2fcd0e52f8b1f8bb7521dcef6b734636009ce834e?d=identicon)[mdmunir](/maintainers/mdmunir)

---

Top Contributors

[![mdmunir](https://avatars.githubusercontent.com/u/5828252?v=4)](https://github.com/mdmunir "mdmunir (15 commits)")

---

Tags

eventstateyii2

### Embed Badge

![Health badge](/badges/deesoft-yii2-tools/health.svg)

```
[![Health](https://phpackages.com/badges/deesoft-yii2-tools/health.svg)](https://phpackages.com/packages/deesoft-yii2-tools)
```

###  Alternatives

[winzou/state-machine

A very lightweight yet powerful PHP state machine

52413.9M18](/packages/winzou-state-machine)[loveorigami/yii2-plugins-system

Plugins system as WP for Yii2

1143.1k1](/packages/loveorigami-yii2-plugins-system)

PHPackages © 2026

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