brightfish / enhanced_ini
Read INI files with enhanced features
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/brightfish/enhanced_ini
Requires (Dev)
- phpunit/phpunit: ^8.0@dev
This package is auto-updated.
Last update: 2025-09-27 22:33:25 UTC
README
Read .ini files with enhanced functionality:
use of a 'default' chapter
- there is a default chapter that can be used to give default key/values for all the other chapters
- the default chapter name is
[default]
but this can be changed to e.g.[_default]
or[def-values]
[default] key1=1 [chapter1] // key1 will exist and = 1 key2=2
{parameter} substitution
- key names can be used as variables in value definition and will be substituted when the value is consulted.
- The variable syntax is
{key}
by default, but can be changed to e.g.{$key}
or[key]
[default] domain=www.example.com [chapter1] code=4567 url=https://{domain}}/?code={code} // url will be = https://www.example.com/?code=4567