2017 © Pedro Peláez
 

library config

Easily load your configuration files.

image

tres-framework/config

Easily load your configuration files.

  • Sunday, June 14, 2015
  • by pedzed
  • Repository
  • 2 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Tres config

This package allows you to easily load your configuration files., (*1)

Installing

It's recommended to install by using Composer:, (*2)

Using the terminal:, (*3)

composer require tres-framework/config

Examples

$config = new Config();

$config->addFromArray([
    'cookie.lifetime_in_hours' => 48,
    'database' => [
        'mysql.host' => '127.0.0.1',
        'mysql.user' => 'bob',
    ],
    'deeply.nested.array.with.zero' => 0,
    'deeply.nested.array.with.a.null' => null,
    'deeply.nested.array.with.a.false' => false,
]);

$config->addFromFile(__DIR__.'/config/database.php');

echo 'Cookie lifetime: '.$config->get('cookie.lifetime_in_hours');

You should check out the unit tests for more examples., (*4)

The Versions

14/06 2015

dev-master

9999999-dev

Easily load your configuration files.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar pedzed

14/06 2015

v0.1.1

0.1.1.0

Easily load your configuration files.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar pedzed

14/06 2015

v0.1

0.1.0.0

Easily load your configuration files.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar pedzed