vaibhavpandeyvpz/pimple-config

A service provider for Pimple to load configuration from simple PHP files.

Latest Version Scrutinizer Code Quality SensioLabsInsight Total Downloads Software License

Install

composer require vaibhavpandeyvpz/pimple-config

Usage

<?php

$container = new Pimple\Container();

/**
 * @desc You can add as many as config service providers.
 */
$container->register(new Pimple\Provider\ConfigServiceProvider(__DIR__ . '/config.php'));

/**
 * @desc You can also load optional configuration files.
 *  If the file is missing ..., it won't complain.
 */
$container->register(new Pimple\Provider\ConfigServiceProvider(__DIR__ . '/config.dev.php', true));

License

See LICENSE.md file.