|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2021-02-07 (22 days ago) ||Not yet rated by the users||Total: 98 This week: 6||All time: 9,483 This week: 52|
This package can read configuration from JSON, INI, XML and arrays.
It provides separate classes that can parse configuration files in all the supported formats.
The classes provide functions to get the configuration values passing keys that specify which values are need by the applications that use these classes.
It is also possible to merge configuration values read from several configuration files.
Read configuration files of different formats (INI, JSON, XML,...)
This package provides a general interface that grant access to configuration settings
of different sources and/or formats.
Following Formats are supported so far:
INI (flat INI file like 'usual' windwos INI-Files supporting sections and entries)
directly from an Array (content may result from a DB query)
In addition, the package offers the possibility of merging several configurations
from different sources and / or in different formats into one object, which can then
be used by any module.
There is thus the possibility of e.g. Merge global and local or general and
user-specific configurations without the processing module having to know where what
information comes from.
NullConfig class is also included that can be used for testing. Also this class
can be used if it is desired to make a module working completly independent with
default configuration values and optional can have external configuration be passed.
Create an instance of the class that supports the desired format.
Pass this instance to any module that supports the `ConfigInterface`
inside the module get the needed config settings with `the getXXX($strPath, $default)` - Methods
For the format of the configuration files see the seeral examples comming with this package.
2021-01-05 Version 1.00
* initial Version
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.