PHPackages                             tantana5/laravel-settings - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. tantana5/laravel-settings

ActiveLibrary[File &amp; Storage](/categories/file-storage)

tantana5/laravel-settings
=========================

Persistent settings manager for laravel, translations are supported.

v1.0.6(7y ago)017MITPHPPHP &gt;=5.6.4

Since Oct 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tantana5/laravel-settings)[ Packagist](https://packagist.org/packages/tantana5/laravel-settings)[ RSS](/packages/tantana5-laravel-settings/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (4)Versions (8)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e9598ca28d0ca35b7913e1560153635f1735a74521ace6b6b2172625b39a1c80/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f54616e74616e61352f63617465676f72697a61626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/unisharp/categorizable)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/82801b3c406067c156555f5e2b2795955a2ef5e331615b60ea6b60ece018affd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f54616e74616e61352f63617465676f72697a61626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Tantana5/categorizable)[![Coverage Status](https://camo.githubusercontent.com/2f8668c995be3b97a9342ee7368e726abc60b9b52a18658aa5707a22d3ed4a02/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f54616e74616e61352f63617465676f72697a61626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Tantana5/categorizable/code-structure)[![Quality Score](https://camo.githubusercontent.com/47dbca3e2fb111eea7d9a9d1a4d3a1b2ae3948823afde6cc1fbfc8ba0124cdfa/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f54616e74616e61352f63617465676f72697a61626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Tantana5/categorizable)[![Total Downloads](https://camo.githubusercontent.com/24029da3a50ca5756beb5af3c2ca84ee21d86782add3e9e67a250a4d7301a77f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f54616e74616e61352f63617465676f72697a61626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Tantana5/categorizable)

Persistent Settings Manager for Laravel
=======================================

[](#persistent-settings-manager-for-laravel)

- Simple key-value storage
- Support multi-level array (dot delimited keys) structure.
- Localization supported.

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

[](#installation)

1. Install package

    ```
    composer require tantana5/laravel-settings
    ```
2. Edit config/app.php (Skip this step if you are using laravel 5.5+)

    service provider:

    ```
    Tantana5\Setting\SettingServiceProvider::class,
    ```

    class aliases:

    ```
    'Setting' => Tantana5\Setting\SettingFacade::class,
    ```
3. Create settings table

    ```
    php artisan vendor:publish --tag=settings
    php artisan migrate
    ```

Usage
-----

[](#usage)

```
Setting::get('name', 'Computer');
// get setting value with key 'name'
// return 'Computer' if the key does not exists

Setting::all();
// get all settings

Setting::lang('zh-TW')->get('name', 'Computer');
// get setting value with key and language

Setting::set('name', 'Computer', 'collection');
// set setting value by key and collection name

Setting::collection('collection');
// get all settings by collection

Setting::lang('zh-TW')->set('name', 'Computer');
// set setting value by key and language

Setting::has('name');
// check the key exists, return boolean

Setting::lang('zh-TW')->has('name');
// check the key exists by language, return boolean

Setting::forget('name');
// delete the setting by key

Setting::lang('zh-TW')->forget('name');
// delete the setting by key and language
```

Dealing with array
------------------

[](#dealing-with-array)

```
Setting::get('item');
// return null;

Setting::set('item', ['USB' => '8G', 'RAM' => '4G']);
Setting::get('item');
// return array(
//     'USB' => '8G',
//     'RAM' => '4G',
// );

Setting::get('item.USB');
// return '8G';
```

Dealing with locale
-------------------

[](#dealing-with-locale)

By default language parameter are being resets every set or get calls. You could disable that and set your own long term language parameter forever using any route service provider or other method.

```
Setting::lang(App::getLocale())->langResetting(false);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~0 days

Total

7

Last Release

2759d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19582951?v=4)[Tân Tân](/maintainers/tantana5)[@tantana5](https://github.com/tantana5)

---

Top Contributors

[![tantana5](https://avatars.githubusercontent.com/u/19582951?v=4)](https://github.com/tantana5 "tantana5 (9 commits)")

---

Tags

laravelSettingsstorageKey valuepersistent

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tantana5-laravel-settings/health.svg)

```
[![Health](https://phpackages.com/badges/tantana5-laravel-settings/health.svg)](https://phpackages.com/packages/tantana5-laravel-settings)
```

###  Alternatives

[unisharp/laravel-settings

Persistent settings manager for laravel, translations are supported.

107169.9k2](/packages/unisharp-laravel-settings)

PHPackages © 2026

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