Download the PHP package mr-luke/settings-manager without Composer

On this page you can find all versions of the php package mr-luke/settings-manager. 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 settings-manager

Settings Manager - Laravel multibag settings Package.

Latest Stable Version Total Downloads License

Tests Workflow Quality Gate Status Security Rating Reliability Rating

This package provides settings manamgement to your Laravel app with support of multiple setting bags with typed value.

Getting Started

Setting Manager supported versions:

Installation

To install through composer, simply put the following in your composer.json file and run composer update

Or use the following command

Next, add the service provider to app/config/app.php

Note: Package is auto-discoverable!

Configuration

To use SettingsManager you need to setup your Bags first. Add your own one to the config file bags:

You can setup different database connections or tables by new driver or different json files in:

You can also publish config file via command:

Usage

Facade

You can access to Manager and your Bags using Mrluke\Settings\Facades\Settings.

Type

SettingsManager is a type casted tool that care about it during the whole process.

Example: You can pass string 5.567 to set method for ratio setting (float) and SettingsManager will cast the value to float 5.567 behind the scean.

Whereever you ask for certain key, it will always be correct type. But all begins at the point of registering...

Registering new index

To register new value use:

This method returns given $value casted to given $type.

Accessing index

To get value use:

This method returns $default in case given $key is not present in the Bag. Otherwise $value is casted to registered type.

Setting new value of index

To set new value use:

This method returns $value casted to registered type. If given $key is not present, it will automaticaly call register method with auto-detected type.

This method shoud not be use to register settings in general! Use Eventing to detect all needed settings during development.

Forgeting an index

To forget an index use:

Default Bag vs specified

To access specific Bag use bag accessor method:

Helper

You can access to SettingsManager via helper function:

Events

SettingsManager provides you a list of pre and post action events to help you handle different situations.

Example: You can use Mrluke\Settings\Events\Registered event to prepare full list of production settings.

Namespace Mrluke\Settings\Events:

JSON Structure

SettingsManager provides JSON Driver for configurations that can be share with front-end apps. The structure looks like this:

Plans


All versions of settings-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^9.0|^8.0
mr-luke/configuration Version ^1.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 mr-luke/settings-manager contains the following files

Loading the files please wait ....