shlinkio / shlink-config
Utils to load, parse and work with configuration on Shlink project
Installs: 78 714
Dependents: 6
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/shlinkio/shlink-config
Requires
- php: ^8.4
- laminas/laminas-servicemanager: ^4.5 || ^3.24
- laminas/laminas-stdlib: ^3.21
Requires (Dev)
- cuyz/valinor: ^2.3.1
- devster/ubench: ^2.1
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^13.0
- psr/simple-cache: ^2.0
- roave/security-advisories: dev-master
- shlinkio/php-coding-standard: ~2.5.0
- symfony/var-dumper: ^8.0
README
Utils to load, parse and work with configuration on Shlink project.
Installation
Install this tool using composer.
composer install shlinkio/shlink-config
This library is also a mezzio module which provides its own
ConfigProvider. Add it to your configuration to get everything automatically set up.
Included utils
loadConfigFromGlob: Function which expects a glob pattern and loads and merges all config files that match it.EnvVarLoaderProvider: A config provider which loads the entries of the loaded config into env vars and always returns empty. Designed to be the first config provider in the pipeline.DottedAccessConfigAbstractFactory: An abstract factory that lets any config param to be fetched as a service by using theconfig.foo.barnotation.