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

ActiveLibrary

madnh/laravel-setting
=====================

Simple setting for Laravel application

v0.1(8y ago)041MITPHP

Since Aug 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/madnh/laravel-setting)[ Packagist](https://packagist.org/packages/madnh/laravel-setting)[ RSS](/packages/madnh-laravel-setting/feed)WikiDiscussions master Synced today

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

Laravel Setting
===============

[](#laravel-setting)

Simple setting for Laravel application

Install
-------

[](#install)

Install with composer:

```
composer require madnh/laravel-setting

```

Add `\MaDnh\LaravelSetting\LaravelSettingServiceProvider::class` to `config/app.php`

```
'providers' => [
    ...
    \MaDnh\LaravelUpload\LaravelUploadServiceProvider::class,
    ...
]
```

Usage
-----

[](#usage)

### Commands

[](#commands)

#### 1. `app:setting.publish`

[](#1-appsettingpublish)

This command publish setting parts.

Syntax: `app:setting.publish [options] [--] []`

**Part:** setting parts, includes:

- model
- observer
- migration
- setting\_init
- controller
- request
- vendor
- all

Use `all` to publish all of parts.

If no parts are specified, then all of parts will be published.

**Options**

- `-f`, `--force`: Overwrite any existing files
- `--tag`: Publish tag (or group) registered by service provider. Examples: *config*, *styles*, *views*,...
- `--subns`: Sub namespace of setting parts. Examples: *Dashboard*, *Admin*,...

**Examples**

Publish all of parts

```
php artisan app:setting.publish
php artisan app:setting.publish all

```

Publish special parts

```
php artisan app:setting.publish request controller setting_init

```

Publish parts with sub namespace

```
php artisan app:setting.publish request controller setting_init --subns=Dashboard

```

Publish vendor with tag

```
php artisan app:setting.publish --tag=config --tag=styles
php artisan app:setting.publish controller vendor --subns=Dashboard --tag=scripts

```

#### 2. `app:setting`

[](#2-appsetting)

Dump, init, import and export settings.

Syntax: `app:setting [options] [--] []`

**Actions:** action to do, optional. Supports:

- `dump`: Show settings detail
- `post`: Post settings from setting file (default is `config/setting.php`) to DB
- `make`: Write settings from DB to setting file (default is `config/setting.php`)
- `init`: Clean DB, do `post` then `make`

If no action is specified, then use `dump` as default action.

**Options**

- `--file=FILE`: File to load init settings, use in `init` and `make` action. If not specified then use `config/setting_init.php` in `init`, or `config/setting.php` in `make`.
- `--name`: Setting name, use with `dump` action. If missing then dump all of settings. Multiple values allowed

###  Health Score

25

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% 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 ~121 days

Total

2

Last Release

3031d ago

### Community

Maintainers

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

---

Top Contributors

[![madnh](https://avatars.githubusercontent.com/u/8559855?v=4)](https://github.com/madnh "madnh (23 commits)")[![manh-gntvn](https://avatars.githubusercontent.com/u/47617295?v=4)](https://github.com/manh-gntvn "manh-gntvn (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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