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

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

porcelanosa/yii2-site-options
=============================

Yii2 Extenstion for set site options

06PHP

Since Dec 11Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Site Options
=================

[](#yii2-site-options)

**WARNING! UNDER DEVELOPMENT**

[![Total Downloads](https://camo.githubusercontent.com/a786f15a105099c1bf7c36206c8f7bd60d60cf635d4eaa31ffca5bab8c7b2589/68747470733a2f2f706f7365722e707567782e6f72672f706f7263656c616e6f73612f796969322d736974652d6f7074696f6e732f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/porcelanosa/yii2-site-options)[![Monthly Downloads](https://camo.githubusercontent.com/df68904e0ecc073b1a41c93b0cb39910178c69c2aa419ffdd2cc4bd5c468fff3/68747470733a2f2f706f7365722e707567782e6f72672f706f7263656c616e6f73612f796969322d736974652d6f7074696f6e732f642f6d6f6e74686c793f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/porcelanosa/yii2-site-options)[![License](https://camo.githubusercontent.com/206ac040e0805ddb97f0f3103512e71714f55ff8b8318e59a7af22398b39b0b6/68747470733a2f2f706f7365722e707567782e6f72672f706f7263656c616e6f73612f796969322d736974652d6f7074696f6e732f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/porcelanosa/yii2-site-options)

Installation
============

[](#installation)

This document will guide you through the process of installing yii2-site-options using **composer**. Installation is a quick and easy several step process.

> **NOTE:** Before we start make sure that you have properly configured **db** application component.

Step 1: Download using composer
-------------------------------

[](#step-1-download-using-composer)

Add yii2-site-options to the require section of your **composer.json** file:

```
{
    "require": {
        "porcelanosa/yii2-site-options": "dev-master"
    }
}
```

And run following command to download extension using **composer**:

```
$ php composer.phar update
```

Step 2: Configure your application
----------------------------------

[](#step-2-configure-your-application)

Add options module to both web and console config files as follows:

```
...
'modules' => [
    ...
    'siteOptions' => [
        'class' => 'porcelanosa\yii2siteoptions\Module',
        'layout' => '@app/modules/admin/views/layouts/main',
    ],
    ...
],
...
```

Step 3: Updating database schema
--------------------------------

[](#step-3-updating-database-schema)

After you downloaded and configured yii2-site-options, the last thing you need to do is updating your database schema by applying the migration:

```
$ php yii migrate/up --migrationPath=@vendor/porcelanosa/yii2-site-options/migrations
```

Menu items

```
['label' => Yii::t('app', 'ADMIN_NAV_STATUS_TYPES'), 'url' => ['/siteOptions/optiontypes/index']],
['label' => Yii::t('app', 'ADMIN_NAV_OPTIONS_LIST'), 'url' => ['/siteOptions/index']],
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![porcelanosa](https://avatars.githubusercontent.com/u/518981?v=4)](https://github.com/porcelanosa "porcelanosa (7 commits)")

### Embed Badge

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

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

PHPackages © 2026

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