Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 144 | All time: 9,155 This week: 72 |
Version | License | PHP version | Categories | |||
php-config 1.1.0 | Freely Distributable | 7.4 | PHP 5, Files and Folders, Configuration |
Description | Author | |
This package can read configuration from JSON, INI, XML, YAML, NEON and arrays. |
This package provides a general interface that grant access to configuration settings of different sources and/or formats.
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.
A 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.
See ConfigExample.php
For the format of the configuration files see the seeral examples comming with this package.
setPathSeparator()
to change default path separator ('.')
Files (48) |
File | Role | Description | ||
---|---|---|---|---|
Nette (1 directory) | ||||
SKien (2 directories) | ||||
autoloader.php | Aux. | Auxiliary script | ||
ConfigExample.php | Example | Example script | ||
ExampleConfig.ini | Data | Auxiliary data | ||
ExampleConfig.json | Data | Auxiliary data | ||
ExampleConfig.neon | Data | Auxiliary data | ||
ExampleConfig.xml | Data | Auxiliary data | ||
ExampleConfig.yaml | Data | Auxiliary data | ||
githubwiki.xml | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
MergeExample.php | Example | Example script | ||
MergeExample1.json | Data | Auxiliary data | ||
MergeExample2.json | Data | Auxiliary data | ||
phpstan.neon | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
readme.md | Doc. | Documentation |
Files (48) | / | Nette | / | Neon |
File | Role | Description |
---|---|---|
Decoder.php | Class | Class source |
Encoder.php | Class | Class source |
Entity.php | Class | Class source |
Exception.php | Class | Class source |
Neon.php | Class | Class source |
Files (48) | / | SKien | / | Config |
File | Role | Description |
---|---|---|
AbstractConfig.php | Class | Class source |
ArrayConfig.php | Class | Class source |
ConfigInterface.php | Class | Class source |
INIConfig.php | Class | Class source |
JSONConfig.php | Class | Class source |
NEONConfig.php | Class | Class source |
NullConfig.php | Class | Class source |
XMLConfig.php | Class | Class source |
YAMLConfig.php | Class | Class source |
Files (48) | / | SKien | / | Test | / | Config |
File | Role | Description | ||
---|---|---|---|---|
testdata (11 files) | ||||
AbstractConfigTest.php | Class | Class source | ||
ArrayConfigTest.php | Class | Class source | ||
INIConfigTest.php | Class | Class source | ||
JSONConfigTest.php | Class | Class source | ||
NEONConfigTest.php | Class | Class source | ||
NullConfigTest.php | Class | Class source | ||
XMLConfigTest.php | Class | Class source | ||
YAMLConfigTest.php | Class | Class source |
Files (48) | / | SKien | / | Test | / | Config | / | testdata |
File | Role | Description |
---|---|---|
InvalidConfig.json | Data | Auxiliary data |
InvalidConfig.neon | Data | Auxiliary data |
InvalidConfig.xml | Data | Auxiliary data |
InvalidConfig.yaml | Data | Auxiliary data |
MergeExample1.json | Data | Auxiliary data |
MergeExample2.json | Data | Auxiliary data |
TestConfig.ini | Data | Auxiliary data |
TestConfig.json | Data | Auxiliary data |
TestConfig.neon | Data | Auxiliary data |
TestConfig.xml | Data | Auxiliary data |
TestConfig.yaml | Data | Auxiliary data |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.