Download the PHP package samireltabal/json-settings without Composer
On this page you can find all versions of the php package samireltabal/json-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package json-settings
SESettings Lib
Library for saving wep app settings in json file with caching.
Version
1.0.0
description
saves settings in json file.. so it can be retrieved quickly without delay time.
usage
- publish config file
- php artisan vendor:publish --tag=config
Limitation
- limited to two levels example
- allowed :
app()->Settings->get('parent.sub')
. - not allowed :
app()->Settings->get('parent.sub.extra')
will throw exception.api
- php artisan vendor:publish --tag=config
- get all settings
- app()->Settings->get()
- get settings by key
- app()->Settings->get('parent.sub')
- get settings by key
- app()->Settings->set('parent.sub', 'some-value')
- or you can use the facade directly
- use Samireltabal\JsonSettings\Facades\Settings; // you can alias it.
- Settings::get('key.sub');
- Settings::set('key.sub', 'value');
Development
- run
- composer install
- composer test
- composer analyse
- composer format
All versions of json-settings with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
^9.0
The package samireltabal/json-settings contains the following files
Loading the files please wait ....