2017 © Pedro Peláez
 

library seagull

Tree like configuration manager

image

seagull/seagull

Tree like configuration manager

  • Thursday, January 31, 2013
  • by wkjagt
  • Repository
  • 17 Watchers
  • 4 Stars
  • 1,745 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Seagull

First, this is called Seagull, a very far fetched reference to a seagull intersection., (*1)

Settings on intersections

This is a tiny library to help you out with your settings and let's you access them with a syntax that resembles the use of namespaces. The way it works is best explained with an example. Start by adding settings to a new object. This can be done in several ways., (*2)

// instantiate Seagull and pass a config to the constructor
$values = array(
    'db' => array(
        'default' => array(
            'host' => 'localhost',
            'user' => 'root',
            ...
        )
    ),
    ...
);

$config = new Seagull($values);

// values can also be set, or added, using the setter:
$config->set('db.default.user', 'root');

// or, take a route to halfway, and the rest with an array:
$config->set('db.default', array(
    'host' => 'localhost',
    'user' => 'root'
));

// your configuration can be accessed like this:
$db_user = $config->get('db.default.user');
$default_db_settings = $config->get('db.default');

The Versions

31/01 2013

dev-master

9999999-dev

Tree like configuration manager

  Sources   Download

MIT

configuration config

31/01 2013

1.0.4

1.0.4.0

Tree like configuration manager

  Sources   Download

MIT

configuration config