Download the PHP package fantismic/dynamic-settings without Composer

On this page you can find all versions of the php package fantismic/dynamic-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dynamic-settings

Dynamic Settings

Laravel Version Downloads Licence

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 "[email protected]".

Requirements

Optionals requirements

(*) 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

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

...and run the migration.

That's it. You are ready to go!

Optionals

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

Using the built in component

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

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

Usage

We provide one or two methods in the facade.

Lets say you have these keys:

Getting data

Setting / Updating data

Using the settings

Get all settings

DynSettings::all(): (array)

Get all settings as array

DynSettings::getArray(): (array)

Get all settings as object

DynSettings::getObject(): (object)

Get all settings as dotted array

DynSettings::getDot(): (array)

Get setting value

DynSettings::get( (string) $key): (mixed)

Get setting data

DynSettings::getKeyData( (string) $key): (array)

Get setting model

DynSettings::getModel( (string) $key): (Eloquent Model)

Get all groups

DynSettings::getGroups(): (array)

Get associations by group

DynSettings::getAssocs( (string) $group): (array)

Get settings by group

DynSettings::getByGroup( (string) $group): (array)

Setting / Updating data

Set a value

DynSettings::set( (string) $group, (mixed) $value): (bool)

Update groupname

DynSettings::updateName( (string) $key, (string) $newName): (bool)

Update description

DynSettings::updateDescription( (string) $key, (string) $newDescription): (bool)

Update association

DynSettings::updateAssoc( (string) $key, (string) $newAssoc): (bool)

Delete setting

DynSettings::delete( (int) $id)**: (bool)

Delete setting by key

DynSettings::deleteByKey( (string) $key)**: (bool)

Update groupname

DynSettings::updateGroupName( (string) $oldName, (string) $newName): (bool)

Using the settings

Comparing setting

DynSettings::is( (string) $key, (mixed) $value): (bool)

Boolean comparition

DynSettings::should( (string) $key): (bool)

Array search

DynSettings::has( (string) $key, (array) $value, [(bool) strict = false]): (bool)


Image description


All versions of dynamic-settings with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-collection-macros Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fantismic/dynamic-settings contains the following files

Loading the files please wait ....