PHPackages                             unisharp/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. unisharp/laravel-settings

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

unisharp/laravel-settings
=========================

Persistent settings manager for laravel, translations are supported.

2.0.3(8y ago)107169.9k—0%24[10 issues](https://github.com/UniSharp/laravel-settings/issues)[1 PRs](https://github.com/UniSharp/laravel-settings/pulls)2MITPHPPHP &gt;=5.5.0

Since Sep 18Pushed 6y ago8 watchersCompare

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

READMEChangelog (7)Dependencies (8)Versions (11)Used By (2)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e5fb9131d2bc0ef80f1502d57d68f26df739b70a8b35841c048c472320805aa0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f556e6953686172702f63617465676f72697a61626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/unisharp/categorizable)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/fdd2674bc477b540c1d3211fc83d3093e2426e6dd3148cb9530726d7c1483474/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f556e6953686172702f63617465676f72697a61626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/UniSharp/categorizable)[![Coverage Status](https://camo.githubusercontent.com/6372eef16c1526a5283e183cdd6de89758d50a6d18064b21450a2d1bfd5b0939/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f556e6953686172702f63617465676f72697a61626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/UniSharp/categorizable/code-structure)[![Quality Score](https://camo.githubusercontent.com/724d0ef0e31396d002a4b02d9b616ede617ae83c531881c71e062049bf1bf077/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f556e6953686172702f63617465676f72697a61626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/UniSharp/categorizable)[![Total Downloads](https://camo.githubusercontent.com/56168d1a5502a5d22d85d30b468e893f87487689c8755d0a4c5a3241a95ec46b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f556e6953686172702f63617465676f72697a61626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/UniSharp/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 unisharp/laravel-settings
    ```
2. Edit config/app.php (Skip this step if you are using laravel 5.5+)

    service provider:

    ```
    Unisharp\Setting\SettingServiceProvider::class,
    ```

    class aliases:

    ```
    'Setting' => Unisharp\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');
// set setting value by key

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

42

—

FairBetter than 90% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~66 days

Total

8

Last Release

3031d ago

Major Versions

1.0.2 → 2.0.02017-05-11

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/49773ea5050ec1d004a506cc1e11be08d6e87339120b5d223b8921e3f671153c?d=identicon)[g0110280](/maintainers/g0110280)

![](https://avatars.githubusercontent.com/u/181350?v=4)[Youchen Lee (isacl)](/maintainers/youchenlee)[@youchenlee](https://github.com/youchenlee)

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

---

Top Contributors

[![youchenlee](https://avatars.githubusercontent.com/u/181350?v=4)](https://github.com/youchenlee "youchenlee (26 commits)")[![streamtw](https://avatars.githubusercontent.com/u/7333171?v=4)](https://github.com/streamtw "streamtw (18 commits)")[![storyn26383](https://avatars.githubusercontent.com/u/6954098?v=4)](https://github.com/storyn26383 "storyn26383 (4 commits)")[![s3sam](https://avatars.githubusercontent.com/u/25058465?v=4)](https://github.com/s3sam "s3sam (2 commits)")[![autocar](https://avatars.githubusercontent.com/u/5386491?v=4)](https://github.com/autocar "autocar (2 commits)")[![mbdwey](https://avatars.githubusercontent.com/u/1855786?v=4)](https://github.com/mbdwey "mbdwey (1 commits)")[![germanow](https://avatars.githubusercontent.com/u/5995709?v=4)](https://github.com/germanow "germanow (1 commits)")[![WilsonFpz](https://avatars.githubusercontent.com/u/8357635?v=4)](https://github.com/WilsonFpz "WilsonFpz (1 commits)")[![FreedomKnight](https://avatars.githubusercontent.com/u/1203922?v=4)](https://github.com/FreedomKnight "FreedomKnight (1 commits)")

---

Tags

configkey-valuelaravellocalesettinglaravelSettingsstorageKey valuepersistent

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[zing/laravel-flysystem-obs

Flysystem Adapter for OBS

1211.2k](/packages/zing-laravel-flysystem-obs)[vormkracht10/flysystem-uploadcare

Flysystem driver for Uploadcare for Laravel.

1834.2k](/packages/vormkracht10-flysystem-uploadcare)

PHPackages © 2026

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