Download the PHP package fluix/fconfig without Composer
On this page you can find all versions of the php package fluix/fconfig. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fluix/fconfig
More information about fluix/fconfig
Files in fluix/fconfig
Download fluix/fconfig
More information about fluix/fconfig
Files in fluix/fconfig
Please rate this library. Is it a good library?
Informations about the package fconfig
FConfig Management
A PHP library for config management
Installation
With Composer
Config examples
default.json
config.json
- Manage your nested configurations with key
base
- Define a list of required options with key
required
- Use
//
to comment out config options - Environment variables could be used via
${ENV_VARIABLE1}
- Secure options are supported, e.g.
secret_value
. (usebin/fconfig encrypt|decrypt {secret} {value}
)
Examples
Full usage
Assume we have a folder structure
Output:
Usage with fallback mechanism
You can use JSON config files as source of values as well.
Assume we have fallback.json in a root of the folder structure
Resulting folder structure
Contents of config.const.php
will be:
Contents of config.array.php
will be:
Contents of config.parameters.yml
will be:
Contents of config.json
will be:
All versions of fconfig with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0.2
ext-json Version *
readdle/crypto Version ^2.0
symfony/yaml Version ^6.0
ext-json Version *
readdle/crypto Version ^2.0
symfony/yaml Version ^6.0
The package fluix/fconfig contains the following files
Loading the files please wait ....