Download the PHP package chonla/cfg without Composer
On this page you can find all versions of the php package chonla/cfg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor chonla
Package cfg
Short Description Configuration Loader/Dumper
License MIT
Homepage https://github.com/chonla/Config
Package cfg
Short Description Configuration Loader/Dumper
License MIT
Homepage https://github.com/chonla/Config
Please rate this library. Is it a good library?
Informations about the package cfg
Config Loader/Dumper
Config Loader/Dumper is an extension to Noodlehaus/Config package.
Supported configuration loader
PHP, INI, XML, JSON, and YAML
Supported configuration dumper
JSON and YAML
API
Like Noodlehause/Config, Config
object can be statically created or instantiated from Config
:
Use get()
to retrieve values:
Use set()
to set values (doh!):
Use save()
to export settings to file:
Examples (from Noodlehaus/Config)
Here's an example JSON file that we'll call config.json
.
Here's the same config file in PHP format:
Or in a PHP file that returns a function that creates your config:
Or in an INI format:
Or in an XML format:
Or in a YAML format:
license
All versions of cfg with dependencies
PHP Build Version
Package Version
The package chonla/cfg contains the following files
Loading the files please wait ....