PHPackages                             ecom/setting - 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. ecom/setting

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ecom/setting
============

The setting component of ecom

0121PHP

Since Jan 3Pushed 12y ago1 watchersCompare

[ Source](https://github.com/bixuehujin/ecom-setting)[ Packagist](https://packagist.org/packages/ecom/setting)[ RSS](/packages/ecom-setting/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

ecom-setting
============

[](#ecom-setting)

The setting component of ecom.

Features
--------

[](#features)

- Multiple storage backend support, such as RDMBS database and Redis.
- Custom storage backend support, by implement the StorageInterface interface.
- ArrayAccess support, you can access settings just like arrays.

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

[](#installation)

The recommended way to install ecom-setting is via [composer](http://getcomposer.org).

1. Add a single line to composer.json:

    ```
    "require": {
        ...
        "ecom/setting": "dev-master"
    	...
    }

    ```
2. Run composer to update denpendencies:

    ```
    $ cd /path/to/project
    $ php composer.phar update

    ```

Usage
-----

[](#usage)

1. Import the table schema located in data directory
2. Set up settings as application component

```
//...
'aliases' => array(
    'ecom' => 'application.vendors.ecom',
),
'components' => array(
    //...
    'setting' => array(
        'class' => 'ecom\settings\Setting',
    ),
    //...
),
//...
```

3. Store settings via setting component.

```
$settings = Yii::app()->getComponent('setting');
$settings->set('foo', 'value of foo');
$bar = $settings->get('bar', 'default value');
$settings->delete('foo');

//you can also using settings like arrays
$settings['foo'] = 'value of foo';
$bar = $settings['bar'];
unset($settings['foo']);
```

Authors
-------

[](#authors)

- Jin Hu

Licence
-------

[](#licence)

- MIT

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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/5291f9967c4bb1cfda7f50ecde566eb5b554352fa6f7eb7920104d58704400f5?d=identicon)[bixuehujin](/maintainers/bixuehujin)

---

Top Contributors

[![bixuehujin](https://avatars.githubusercontent.com/u/1145280?v=4)](https://github.com/bixuehujin "bixuehujin (3 commits)")

### Embed Badge

![Health badge](/badges/ecom-setting/health.svg)

```
[![Health](https://phpackages.com/badges/ecom-setting/health.svg)](https://phpackages.com/packages/ecom-setting)
```

###  Alternatives

[wyrihaximus/react-child-process-messenger

Messenger decorator for react/child-process

32279.4k4](/packages/wyrihaximus-react-child-process-messenger)[elisdn/php-hydrator

Simple object hydrator

4160.4k](/packages/elisdn-php-hydrator)

PHPackages © 2026

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