Download the PHP package publishing-kit/config without Composer
On this page you can find all versions of the php package publishing-kit/config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download publishing-kit/config
More information about publishing-kit/config
Files in publishing-kit/config
Package config
Short Description PHP configuration manager package
License MIT
Homepage https://github.com/publishing-kit/config
Informations about the package config
config
PublishingKit/Config is a simple config container. It can parse the following formats:
- PHP files (useful for dynamic stuff that can change based on the environment)
ini
files- YAML files
Install
Via Composer
Usage
You can simply pass in an array for the configuration:
However, in practice you're unlikely to do this. Instead, you will normally use the named constructors to create the config from a file:
Once you have a config object, you can check for existence with the has()
method, and get the value with the get()
method, or as a property:
Since the config object implements ArrayAccess
and IteratorAggregate
, you can also loop over them or access properties using array notation.
Config objects are immutable and so cannot be changed once created.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Matthew Daly
- All Contributors
License
The MIT License (MIT). Please see License File for more information.