Download the PHP package lav45/yii2-settings without Composer
On this page you can find all versions of the php package lav45/yii2-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lav45/yii2-settings
More information about lav45/yii2-settings
Files in lav45/yii2-settings
Package yii2-settings
Short Description This extension helps you to easily store and retrieve data for your application.
License BSD-3-Clause
Homepage https://github.com/lav45/yii2-settings
Informations about the package yii2-settings
yii2-settings
This extension is very useful for storing any settings, for your application.
Installation
The preferred way to install this extension through composer.
You can set the console
in section in composer.json
file.
Migrate
Apply with the console command:
or add it to your console config file ( console/config/main.php )
Component Setup
To use the Setting Component, you need to configure the components array in your application configuration:
Using
Can default
CacheBehavior
The extension, which will help to speed up data loading by caching. If the data changes, the cache will be updated automatically.
To clean the cache, you can use this method
QuickAccessBehavior
This extension allows you to quickly obtain the necessary data from a multidimensional array
ContextBehavior
This extension allows to retrieve data depending on the context. For example, depending on the selected language.
Practical use: you can see in
- SettingsForm
- ProjectConfiguration
License
yii2-settings it is available under a BSD 3-Clause License. Detailed information can be found in the LICENSE.md
.