2017 © Pedro Peláez
 

package dummy-config-loader

This file allows me to lazy load config files and access entries with dot syntax: `database.default.driver`

image

lezhnev74/dummy-config-loader

This file allows me to lazy load config files and access entries with dot syntax: `database.default.driver`

  • Friday, April 14, 2017
  • by lezhnev74
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Latest Stable Version Build Status License Total Downloads, (*1)

Usage

$config = new DummyConfigLoader\Config(__DIR__); // this will look for config files in this folder
$value = $config->get('database.default.driver', 'mongodb');

You will get mariadb as $value if you will place file database.php in the given folder with contents:, (*2)

return [
    "default" => [
        "driver" => "mariadb"
    ]
];

Otherwise you will get mongodb., (*3)

First section of any key addresses the file within the directory. One level of recursion allowed. If no such file found in the folder - exception will be thrown., (*4)

Installation

composer require lezhnev74/dummy-config-loader

Support

If you need help - feel comfortable to ping me at lezhnev.work@gmail.com, (*5)

The Versions

14/04 2017

dev-master

9999999-dev

This file allows me to lazy load config files and access entries with dot syntax: `database.default.driver`

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

14/04 2017

v1.0.2

1.0.2.0

This file allows me to lazy load config files and access entries with dot syntax: `database.default.driver`

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

13/04 2017

v1.0.1

1.0.1.0

This file allows me to lazy load config files and access entries with dot syntax: `database.default.driver`

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

13/04 2017

v1.0.0

1.0.0.0

This file allows me to lazy load config files and access entries with dot syntax: `database.default.driver`

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires