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

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

trrtly/setting
==============

trrtly setting component

v1.0.0(4y ago)14.5kMITPHPPHP &gt;=7.0

Since Mar 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/trrtly/setting)[ Packagist](https://packagist.org/packages/trrtly/setting)[ RSS](/packages/trrtly-setting/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Settings
================

[](#laravel-settings)

Laravel 5.x Settings help your key value to persist.

[![Build Status](https://camo.githubusercontent.com/cede1a9f883011a2f3fe923daf777a33839bc800eac736f973afca7d257f95ab/68747470733a2f2f7472617669732d63692e6f72672f696272616e6463632f73657474696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ibrandcc/setting)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/252bf826cd74f80e561b47e2d6c3d8776c3cd518b5ed0ea21160c6dd19ad17bf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696272616e6463632f73657474696e672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ibrandcc/setting/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/a27d3acfc225c11eae9ab6c826e281be16d73a9d2a47980d659f54a3e11bc9ac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696272616e6463632f73657474696e672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ibrandcc/setting/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/20ba5187760164663fba5fd7a705569dc4cf3c281004f94a88bfcb4844a71beb/68747470733a2f2f706f7365722e707567782e6f72672f696272616e642f73657474696e672f762f737461626c65)](https://packagist.org/packages/ibrand/setting)[![Latest Unstable Version](https://camo.githubusercontent.com/6511e61358ecbd54872943466518618c9e9071a25aba2ef2de4145163537b0a2/68747470733a2f2f706f7365722e707567782e6f72672f696272616e642f73657474696e672f762f756e737461626c65)](https://packagist.org/packages/ibrand/setting)[![License](https://camo.githubusercontent.com/002a64e95afa7bcd4e130db17e77b816f1f8aba7346c1344b300e1b7b0c88633/68747470733a2f2f706f7365722e707567782e6f72672f696272616e642f73657474696e672f6c6963656e7365)](https://packagist.org/packages/ibrand/setting)

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

[](#installation)

### Composer install

[](#composer-install)

```
$ composer require ibrand/setting -vvv
```

If your Laravel version below 5.5, you need add the follow line to the section `providers` of `config/app.php`:

```
iBrand\Component\Setting\ServiceProvider::class,
```

### Publishing config file

[](#publishing-config-file)

If you want to edit default config file, just publish it you app config folder.

```
php artisan vendor:publish --provider="iBrand\Component\Setting\ServiceProvider"
```

### Creating table for database.

[](#creating-table-for-database)

Execute artisan command

```
php artisan migrate
```

Usage
-----

[](#usage)

### Change database table name.

[](#change-database-table-name)

If you want to change database table name, you can change `config/ibrand/setting.php` after publishing config file.

```
return [

    'table_name' => 'el_system_settings',

    'cache' => true,
];
```

### Use settings() help method.

[](#use-settings-help-method)

#### Set value

[](#set-value)

```
settings(['key'=>'value'])
```

#### Get Value

[](#get-value)

```
settings('key')
```

### Use App make Method.

[](#use-app-make-method)

#### Set value

[](#set-value-1)

```
app('system_setting')->setSetting(['key'=>'value'])
```

#### Get Value

[](#get-value-1)

```
app('system_setting')->getSetting('key')
```

### Disable cache.

[](#disable-cache)

Set `cache=>false` in `config/ibrand/setting.php` file.

```
return [

    'table_name' => 'el_system_settings',

    'cache' => false,
];
```

果酱云社区
-----

[](#果酱云社区)

 [ ![点击跳转](https://camo.githubusercontent.com/6359e5bd680f99c0f946287e22a32d5935d94a942ae2116a0b2f6f0c7a70ccca/68747470733a2f2f63646e2e67756f6a69616e672e636c75622f696d6167652f323032322f30322f31362f77755f316673306a62636f32313832673238306c317661676d376265362e706e67) ](https://guojiang.club/)

- 全网真正免费的IT课程平台
- 专注于综合IT技术的在线课程，致力于打造优质、高效的IT在线教育平台
- 课程方向包含Python、Java、前端、大数据、数据分析、人工智能等热门IT课程
- 300+免费课程任你选择

 [ ![点击跳转](https://camo.githubusercontent.com/8f168577f9682601d01cf6c726dbbccd911815b2b6d4f999e27475448f22a107/68747470733a2f2f63646e2e67756f6a69616e672e636c75622f696d6167652f323032322f30322f31362f77755f316673306c383261653170713131653433316a366e31376a7331767137362e706e67) ](https://guojiang.club/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

1511d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16716327?v=4)[trrtly](/maintainers/trrtly)[@trrtly](https://github.com/trrtly)

---

Top Contributors

[![trrtly](https://avatars.githubusercontent.com/u/16716327?v=4)](https://github.com/trrtly "trrtly (1 commits)")

---

Tags

componentsettingibrand

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phpoffice/common

PHPOffice Common

23512.3M36](/packages/phpoffice-common)[ibrand/laravel-miniprogram-poster

iBrand's laravel miniprogram poster tool

7216.6k1](/packages/ibrand-laravel-miniprogram-poster)[laravel-admin-ext/config

Config extension for laravel-admin

97180.2k5](/packages/laravel-admin-ext-config)[lochmueller/autoloader

Automatic components loading of ExtBase extensions to get more time for coffee in the company ;) This ext is not a PHP SPL autoloader or class loader - it is better! Loads CommandController, Xclass, Hooks, FlexForms, Slots, TypoScript, TypeConverter, BackendLayouts and take care of createing needed templates, TCA configuration or translations at the right location.

19364.9k5](/packages/lochmueller-autoloader)[tomatophp/filament-icons

Picker &amp; Table Column &amp; Icons Provider for FilamentPHP

3598.2k13](/packages/tomatophp-filament-icons)[contributte/menu-control

Menu control for Nette framework

29108.6k1](/packages/contributte-menu-control)

PHPackages © 2026

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