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

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

vidwan/settings
===============

Database Driven Dynamic Settings with Form Builder

v0.0.2(3y ago)041MITPHPPHP ^8.0

Since Jan 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vidwanco/settings)[ Packagist](https://packagist.org/packages/vidwan/settings)[ Docs](https://github.com/vidwanco/settings)[ Fund](https://www.buymeacoffee.com/shashwatmishra)[ GitHub Sponsors](https://github.com/secrethash)[ RSS](/packages/vidwan-settings/feed)WikiDiscussions main Synced 1w ago

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

Dynamic Settings with Form Builder
==================================

[](#dynamic-settings-with-form-builder)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f3b8ae1f80ed0769152dc975c520b89a1def45ef36f60d940123c3589fdeadb2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76696477616e2f73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vidwan/settings)[![GitHub Tests Action Status](https://github.com/vidwanco/settings/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/vidwanco/settings/actions/workflows/run-tests.yml)[![GitHub Code Style Action Status](https://github.com/vidwanco/settings/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/vidwanco/settings/actions/workflows/php-cs-fixer.yml)[![Psalm](https://github.com/vidwanco/settings/actions/workflows/psalm.yml/badge.svg)](https://github.com/vidwanco/settings/actions/workflows/psalm.yml)[![Total Downloads](https://camo.githubusercontent.com/d4a06ba3a2ba2af7ab30c2a4c2a88a9bd017e7a51ea54a1397a2e4a048a68938/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76696477616e2f73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vidwan/settings)

A Package to generate Dynamic Settings with a Simple Form Builder.

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

[](#installation)

You can install the package via composer:

```
composer require vidwan/settings
```

Usage
-----

[](#usage)

### Form Builder

[](#form-builder)

File: `Vidwan\Settings\Settings`

```
use Vidwan\Settings\Settings;
...
Settings::form(Setting::all())
        ->labelAttributes(['class' => 'form-label'])
        ->inputAttributesFor('text', [
            'class' => 'form-control',
        ])
        ->inputAttributesFor('innerBlock', [
            'checkbox' => [
                'class' => 'form-control',
            ],
        ])
        ->inputAttributesFor('checkbox', function ($settings) {
            return [
                'class' => 'form-check',
            ];
        })
        ->formAttributes(['id' => 'settings-form'])
        ->blockAttributes(['class' => 'mb-1'])
        ->uploadable()
        ->render();
```

### Single Label &amp; Input Builder

[](#single-label--input-builder)

```
use Vidwan\Settings\Models\Setting;

$settings = Setting::all();

foreach ($settings as $setting)
{
    $setting->formLabel(attributes: ['class' => 'something']); //
    $setting->formInput(attributes: ['class' => 'form-control']); //
}
```

### Helper

[](#helper)

```
    settings('theme');
```

### Ignoring Migration

[](#ignoring-migration)

Ignoring auto-migrations (without publishing) and specifying the path to publish migrations.

```
use Vidwan\Settings\Settings;

...

class AppServiceProvider extends ServiceProvider
{
    ...

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        // Disable auto-migration
        Settings::$runsMigrations = false;
        // Sets Migration Path
        Settings::$migrationPath = database_path('migrations/tenant');
    }

    ...

}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Support us
----------

[](#support-us)

You can support us by contributing to our open source projects or Sponsoring the projects you use.

Credits
-------

[](#credits)

- [Shashwat Mishra](https://github.com/secrethash)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

3

Last Release

1433d ago

### Community

Maintainers

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

---

Top Contributors

[![secrethash](https://avatars.githubusercontent.com/u/11258035?v=4)](https://github.com/secrethash "secrethash (51 commits)")

---

Tags

SettingsVidwan Co.

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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