PHPackages                             namest/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. namest/settings

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

namest/settings
===============

v0.1.1(11y ago)062MITPHP

Since Mar 2Pushed 11y ago1 watchersCompare

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

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

Getting Stared
==============

[](#getting-stared)

Provide a very flexible way to interact with app settings (not laravel config).

**Note**: The package is only support Laravel 5

Installation
============

[](#installation)

**Step 1**: Install package

```
composer require namest/settings
```

**Step 2**: Register service provider in your `config/app.php`

```
return [
    ...
    'providers' => [
        ...
        'Namest\Settings\SettingsServiceProvider',
    ],
    ...
    'aliases' => [
        ...
        'Setting' => 'Namest\Settings\Facades\Setting',
    ],
];
```

**Step 3**: Publish package resources, include: configs, migrations. Open your terminal and type:

```
php artisan vendor:publish --provider="Namest\Settings\SettingsServiceProvider"
```

**Step 4**: Migrate the migration that have been published

```
php artisan migrate
```

**Step 5**: Add some setting key/value pairs in `settings` table in your database

**Step 6**: Read API below and start *happy*

API
===

[](#api)

Three way to start to use:

**First way**: New setting instance

```
$settings = new Namest\Settings\Repository;

```

**Second way**: Via facade like this

```
Setting::get($key);
Setting::set($key, $value);

```

**Third way**: Via injected contract. For example in controller:

```
namespace ...;

use Namest\Settings\Contracts\Repository as Settings;

class UsersController extends Controller
{
    private $settings;

    public function __construct(Settings $settings)
    {
        $this->settings = $settings;
    }

    public function index()
    {
        $limit = $this->settings->limit;
    }

    // Or injects via method
    public function show(Settings $settings)
    {
        $limit = $settings->limit;
    }

}

```

```
// Return all settings
Setting::all();
$settings->all();

// Check setting exists
Setting::has($key);
isset($settings[$key]);
array_key_exists($key, $settings);

// Get setting value from key
Setting::get($key, $default); // Via facade
setting($key, $default); // Via helper function
$settings[$key]; // Via array access
$settings->$key; // Via object access. Example: $limit = $settings->limit;

// Set setting value
Setting::set($key, $value);
$settings[$key] = $value;
$settings->$key = $value;
```

```
// Reload preloaded settings
Setting::preload();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

4096d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b120d989836a5c37a0f9a2558a237d7c14325aa76ba60a24badc402296c220b?d=identicon)[luuhoangnam](/maintainers/luuhoangnam)

---

Top Contributors

[![luuhoangnam](https://avatars.githubusercontent.com/u/5616199?v=4)](https://github.com/luuhoangnam "luuhoangnam (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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