PHPackages                             betadog/yii1-components - 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. betadog/yii1-components

ActiveLibrary[Framework](/categories/framework)

betadog/yii1-components
=======================

Some components for Yii1

1.0.0(6y ago)0209proprietaryPHPPHP &gt;=7.2

Since Apr 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/betadog/yii1-reusable-components)[ Packagist](https://packagist.org/packages/betadog/yii1-components)[ RSS](/packages/betadog-yii1-components/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

yii1-reusable-components
========================

[](#yii1-reusable-components)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4f25fd75ea7871dc78f5b1b874df96576ef0202f497ae3c9f6d4cee6e220fc08/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62657461646f672f796969312d7265757361626c652d636f6d706f6e656e74732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/betadog/yii1-reusable-components/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/8a537c7e222cb6272ff219d2a45330d24036f828a9889c1b138f3e099fcfa457/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62657461646f672f796969312d7265757361626c652d636f6d706f6e656e74732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/betadog/yii1-reusable-components/?branch=master)[![Build Status](https://camo.githubusercontent.com/6d59a95f71a1406e6e461d4ac6448e36d884b8b1d5ef5d0edd8206d29e08d5e7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62657461646f672f796969312d7265757361626c652d636f6d706f6e656e74732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/betadog/yii1-reusable-components/build-status/master)[![Build Status](https://camo.githubusercontent.com/6d59a95f71a1406e6e461d4ac6448e36d884b8b1d5ef5d0edd8206d29e08d5e7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62657461646f672f796969312d7265757361626c652d636f6d706f6e656e74732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/betadog/yii1-reusable-components/build-status/master)

This package provide some behaviors:

- `MiniTrace` - allow get minitrace anywere in application
- `OrderingValueBehavior` - allows automatically assign a value to ordering column

MiniTrace.php
-------------

[](#minitracephp)

Allow writes `echo Yii::app()->miniTrace();`
Just add follow code into `./protected/config/main.php`

```
'behaviors'         => [
    'miniTrace' => [
        'class' => 'application.components.behaviors.MiniTraceBehavior',
    ],
],

```

OrderingValue.php
-----------------

[](#orderingvaluephp)

Class allow u to automatically set value for ordering column for new elements. Just add behavior to your `CActiveRecord` model and define column name:

```
public function behaviors()
{
    return [
        'orderingAttribute' => [
            'class'      => 'application.components.behaviors.OrderingValueBehavior',
            'columnName' => 'ordering',                 // order column name
            'position'   => OrderingValue::POSITION_END // position for new element
        ],
    ];
}

```

to be continued
---------------

[](#to-be-continued)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2215d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/859898?v=4)[betadog](/maintainers/betadog)[@betadog](https://github.com/betadog)

---

Top Contributors

[![betadog](https://avatars.githubusercontent.com/u/859898?v=4)](https://github.com/betadog "betadog (1 commits)")

---

Tags

Yii1Yii1 behaviors collection

### Embed Badge

![Health badge](/badges/betadog-yii1-components/health.svg)

```
[![Health](https://phpackages.com/badges/betadog-yii1-components/health.svg)](https://phpackages.com/packages/betadog-yii1-components)
```

###  Alternatives

[koriym/dii

Dependency Injection Plugin for Yii 1

17195.8k](/packages/koriym-dii)[crisu83/yii-app

A great way to start building your web application with Yii PHP framework.

1101.5k](/packages/crisu83-yii-app)

PHPackages © 2026

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