Services providing loading of configuration files.

v1.1.1 2017-06-01 05:44 UTC

This package is auto-updated.

Last update: 2022-10-29 02:07:49 UTC


Services providing loading of configuration files.

Two services are provided and registered with a Pimple container:-

  • config.loader.ini: loads ini files
  • config.loader.yaml: loads Yaml files

A third, optional service comfig.loader.env is registered if the Symfony Dotenv component is installed.


Install using composer:-

$ composer require linkorb/silex-provider-configloader

and optionally require symfony/dotenv during development:-

$ composer require --dev symfony/dotenv

Then register the provider:-

// app/app.php
use LinkORB\ConfigLoader\Provider\ConfigurationLoaderProvider;
$app->register(new ConfigurationLoaderProvider);


$config = $app['config.loader.ini']->load('path/to/config.ini');