PHPackages                             pesto/yii2-variable - 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. pesto/yii2-variable

ActiveYii2-extension[Database &amp; ORM](/categories/database)

pesto/yii2-variable
===================

A simple solution for the storage of variables in the database

0.1.1(10y ago)017nonePHP

Since Mar 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Pesto-kun/yii2-variable)[ Packagist](https://packagist.org/packages/pesto/yii2-variable)[ RSS](/packages/pesto-yii2-variable/feed)WikiDiscussions master Synced yesterday

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

### Install

[](#install)

Выполните команду

```
$ php composer.phar require pesto/yii2-variable "*"

```

или добавьте

```
"pesto/yii2-variable": "*"

```

в секцию `require` вашего `composer.json` файла.

Выполните миграции

```
./yii migrate/up --migrationPath=@vendor/pesto/yii2-variable/migrations

```

### Configuration

[](#configuration)

Добавьте следующее в ваш конфигурационный файл:

```

```

или получить значение уже сохраненной переменной:

```

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~38 days

Total

2

Last Release

3733d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38011533?v=4)[Pesto Technologies](/maintainers/Pesto)[@pesto](https://github.com/pesto)

---

Top Contributors

[![Pesto-kun](https://avatars.githubusercontent.com/u/8971843?v=4)](https://github.com/Pesto-kun "Pesto-kun (3 commits)")

---

Tags

yii2variable

### Embed Badge

![Health badge](/badges/pesto-yii2-variable/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[bizley/migration

Migration generator for Yii 2.

296389.5k11](/packages/bizley-migration)[yii2tech/illuminate

Yii2 to Laravel Migration Package

11415.8k](/packages/yii2tech-illuminate)[mootensai/yii2-relation-trait

Yii 2 Models load with relation, &amp; transaction save with relation

47229.1k9](/packages/mootensai-yii2-relation-trait)[nhkey/yii2-activerecord-history

Storage history of changes to ActiveRecord

46148.8k1](/packages/nhkey-yii2-activerecord-history)[dmstr/yii2-db

Database extensions

19656.2k6](/packages/dmstr-yii2-db)

PHPackages © 2026

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