Skip to content

Utils to load, parse and work with configuration on Shlink project

License

Notifications You must be signed in to change notification settings

shlinkio/shlink-config

Repository files navigation

Shlink config

Build Status Code Coverage Latest Stable Version License Paypal donate

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 the config.foo.bar notation.

About

Utils to load, parse and work with configuration on Shlink project

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages