shlinkio/shlink-config

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

v1.0.0 2020-03-13 18:30 UTC

This package is auto-updated.

Last update: 2020-03-31 21:03:26 UTC


README

Build Status Code Coverage Scrutinizer Code Quality 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.
  • PathCollection: Wraps a configuration array and lets you manipulate it using config paths. You can check if certain path exists, or get/set the value in certain path.
  • DottedAccessConfigAbstractFactory: An abstract factory that lets any config param to be fetched as a service by using the config.foo.bar notation.