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

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

fantismic/dynamic-settings
==========================

This package creates custom dynamic settings controlled by the user.

1.1.5(1y ago)11.8kMITPHPPHP ^8.2

Since Jul 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fantismic/dynamic-settings)[ Packagist](https://packagist.org/packages/fantismic/dynamic-settings)[ RSS](/packages/fantismic-dynamic-settings/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

Dynamic Settings
================

[](#dynamic-settings)

[![Laravel](https://camo.githubusercontent.com/b272ab07dfcfe896876614df318c7ff0be563af6b1494fa7737ee5f7e6049740/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d6c61726176656c266d6573736167653d25453225383925413531302e3026636f6c6f723d303037384245266c6f676f3d6c61726176656c267374796c653d666c61742d737175617265253232)](https://packagist.org/packages/fantismic/dynamic-settings)[![Version](https://camo.githubusercontent.com/b23598dd10f75432b6eb158bc54fad27d990af0f2b7428f48c7b35f1e9d8aa8e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66616e7469736d69632f64796e616d69632d73657474696e6773)](https://packagist.org/packages/fantismic/dynamic-settings)[![Downloads](https://camo.githubusercontent.com/c2056f7e2bcc608fa4cdbe0482f1eac71ba87ae71bb61b65e320b155c09f62df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66616e7469736d69632f64796e616d69632d73657474696e6773)](https://packagist.org/packages/fantismic/dynamic-settings)[![Licence](https://camo.githubusercontent.com/4b95e6bf0a7887f2442bebca8cfc52b309247c48970c9f79391bac7e4296ecdb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66616e7469736d69632f64796e616d69632d73657474696e6773)](https://packagist.org/packages/fantismic/dynamic-settings)

Dynamic Settings is a Laravel / Livewire package that allows you to manage custom settings of your application dynamically.

Let's say you have several notifications to different mailing lists, but you would like to be able to change whether they are sent or not, or which email they are sent to without having to modify the code or the env file.

This is where Dynamic Settings comes in.

You can make any number of configurations, grouped and associated with each other, and then use their values ​​in the code. This way when sending an email, for example, $to will be DynSettings::get('admin.mail') and not "".

Requirements
------------

[](#requirements)

- Laravel 10/11

### Optionals requirements

[](#optionals-requirements)

- [Livewire 3](https://livewire.laravel.com/) (\*)
- [Wire UI 2](https://wireui.dev/) (\*\*)

(\*) Livewire 3 is required only for the component to manage the settings. You can always ignore that and make your own.

(\*\*) As said before, WireUI is a great package for those components, we included a normal view and a WireUI view, they set up automatically base on your app.

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

[](#installation)

```
composer require fantismic/dynamic-settings

```

After you install you need to publish the migration file...

```
php artisan vendor:publish --provider="Fantismic\\DynSettings\\Providers\\DynSettingsProvider" --tag="migrations"

```

...and run the migration.

```
php artisan migrate

```

That's it. You are ready to go!

### Optionals

[](#optionals)

You can publish the configuration file to customize behavior, such as full page component mode or preferred blade.

```
php artisan vendor:publish --provider="Fantismic\\DynSettings\\Providers\\DynSettingsProvider" --tag="config"

```

Using the built in component
----------------------------

[](#using-the-built-in-component)

### Component mode

[](#component-mode)

We provide a livewire component for manage the settings. You just need to include it like any other componenet wherever you want it.

```

```

### Fullpage mode

[](#fullpage-mode)

You can set the component to render in fullpage in the config file. If you do, you should add the route in your routes/web.php

```
