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

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

netcore/module-setting
======================

v2.0.6(7y ago)02.7k5PHPPHP &gt;=5.5

Since Nov 2Pushed 7y ago5 watchersCompare

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

READMEChangelog (10)DependenciesVersions (21)Used By (5)

Description
-----------

[](#description)

This module was made for easy management of settings

Pre-installation
----------------

[](#pre-installation)

This package is part of Netcore CMS ecosystem and is only functional in a project that has following packages installed:

1.
2.
3.

### Installation

[](#installation)

- Require this package using composer

```
    composer require netcore/module-setting

```

- Publish configuration/migrations

```
    php artisan module:publish-config Setting
    php artisan module:publish-migration Setting
    php artisan migrate

```

### Configuration

[](#configuration)

- Configuration file is available at config/netcore/module-setting.php

### Seeding settings

[](#seeding-settings)

```
    $settings = [
        [
            'group' => 'global',
            'name'  => 'Name',
            'key'   => 'key',
            'value' => 'value', // This will set this value to all languages
            // Or you can pass value as array and set different value in different language
            // 'value' => [
            //      'en' => 'value en',
            //      'lv' => 'value lv',
            // ],
            'type'  => 'select', // Available types: text, textarea, select, checkbox, file
            'meta'  => [
                // Here you can specify what HTML attributes you want for this input
                'attributes' => [
                    'required'  => 'required',
                    'min'       => '0',
                    'max'       => '100'
                ],
                // Here you can specify what data select input will have.
                // You can pass it as array or string (it will be called as a function)
                'options'    => [
                    'one'  => 'One',
                    'two'  => 'Two'
                ]
            ],
            'is_translatable' => 0, // If you need different values for different languages, set this to 1(default is 0)
            'has_manager'     => 0, // If you have module-media, you can set this to 1 and set setting value to selected file url
        ]
    ];

    setting()->seed($settings);
```

### Usage

[](#usage)

```
    // Fetch setting by key
    setting()->get('global.key');

    // Optionally you can pass second parameter as the default value if the setting is not found
    setting()->get('global.key', 'default');

    // You can pass key variable as array to get multiple settings at once
    setting()->get(['global.one', 'global.two']);

    // Optionally you can pass second parameter as the default value as string or array and it will set defaults respectively
    setting()->get(['global.one', 'global.two'], ['default_one', 'default_two']);

    // Fetch all settings
    setting()->all();

    // Fetch grouped settings
    setting()->grouped();
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 89.2% 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 ~17 days

Recently: every ~52 days

Total

20

Last Release

2782d ago

Major Versions

v0.1.1 → v1.0.02017-11-03

0.1.x-dev → v1.0.12017-11-29

v1.0.8 → v2.0.02018-02-27

### Community

Maintainers

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

---

Top Contributors

[![dmitrijsmihailovs](https://avatars.githubusercontent.com/u/6555569?v=4)](https://github.com/dmitrijsmihailovs "dmitrijsmihailovs (33 commits)")[![danielsGrietins](https://avatars.githubusercontent.com/u/24427373?v=4)](https://github.com/danielsGrietins "danielsGrietins (3 commits)")[![janisblaus](https://avatars.githubusercontent.com/u/1029697?v=4)](https://github.com/janisblaus "janisblaus (1 commits)")

### Embed Badge

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

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

###  Alternatives

[thanhdv2811/magento-2-currency-convert

The currency import service in Magento 2 doesn't work any more (Fixer.io, Webservicex and Yahoo Finance Exchange). This extension will add other services to import the currency rate

1727.8k](/packages/thanhdv2811-magento-2-currency-convert)

PHPackages © 2026

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