vaibhavpandeyvpz/pimple-config

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

2.0 2017-03-26 02:22 UTC

This package is auto-updated.

Last update: 2024-12-07 00:47:02 UTC


README

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\Config\ConfigServiceProvider(), [
    'config.files' => [
        __DIR__ . '/database.php',
        __DIR__ . '/security.php',
    ]
]);

$container['config.hydrate']($container);

License

See LICENSE.md file.