Releases: PhpGt/Config
Better type safety & CI
This patch release includes two improvements: 1) CI is handled by Github Actions now - you can check out the build history at https://github.com/PhpGt/Csrc/actions 2) PHPStan level 6 has been applied to the code, meaning certain type hints have been improved for greater readability and future maintainability.
Amongst these improvements is the introduction of the TypeSafeGetter
interface which makes nullable type safe getters more consistent across PHP.Gt repositories.
Stable release
This repository has been in use within many WebEngine applications over the last few months without any change to functionality, so to aid the release of the stable v3 release of WebEngine, Config is getting its first stable release.
General improvements
- Config generator script available to all dependent projects
- Cross-platform compatibility
FileWriter Generator
Generating a config file can now be done via the CLI.
FileWriter
Now the library reads in from .dev, .deploy and .prod ini files, it is possible to write to these files too, which is intended to enhance continuous deployment tasks.
Feature release
- Underscores used in environment variables to separate section and key
- ConfigSection made immutable
- Load default configuration from file(s)
- Load override configuration from file(s)
- Strengthen tests
v0.1.0
Flat ini file parser
This release parses a simple .ini file, as long as the path is known and the variables are not nested.