PHPackages                             twisted1919/yii2-options - 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. twisted1919/yii2-options

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

twisted1919/yii2-options
========================

It helps to manage your app options/settings

1.0.2(6y ago)12.7k↓66.7%3BSD-3-ClausePHPPHP &gt;=5.4

Since Aug 8Pushed 6y ago2 watchersCompare

[ Source](https://github.com/twisted1919/yii2-options)[ Packagist](https://packagist.org/packages/twisted1919/yii2-options)[ RSS](/packages/twisted1919-yii2-options/feed)WikiDiscussions master Synced 2mo ago

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

yii2-option
===========

[](#yii2-option)

### Install via composer:

[](#install-via-composer)

`composer require twisted1919/yii2-options`

### Run the migration:

[](#run-the-migration)

`./yii migrate --migrationPath=@vendor/twisted1919/yii2-options/migrations`

### Add the component in your configuration file:

[](#add-the-component-in-your-configuration-file)

```
'components' => [
    [...]
    'options' => [
        'class' => '\twisted1919\options\Options'
    ],
    [...]
]
```

### Api:

[](#api)

Please note that `options()` is added by `twisted1919/yii2-shortcut-functions` automatically.

###### SET

[](#set)

```
options()->set($key, $value);
```

###### GET

[](#get)

```
options()->get($key, $defaultValue = null);
```

###### REMOVE

[](#remove)

```
options()->remove($key);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

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

Every ~669 days

Total

3

Last Release

2225d ago

### Community

Maintainers

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

---

Top Contributors

[![twisted1919](https://avatars.githubusercontent.com/u/957490?v=4)](https://github.com/twisted1919 "twisted1919 (18 commits)")

---

Tags

Settingsoptionsyii2

### Embed Badge

![Health badge](/badges/twisted1919-yii2-options/health.svg)

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

###  Alternatives

[lav45/yii2-settings

This extension helps you to easily store and retrieve data for your application.

1615.0k2](/packages/lav45-yii2-settings)

PHPackages © 2026

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