2017 © Pedro Peláez
 

library config

Configure files library

image

kasseler/config

Configure files library

  • Sunday, March 15, 2015
  • by kasseler
  • Repository
  • 1 Watchers
  • 0 Stars
  • 68 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Config Component

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Config Component is a file configuration loader and saver that supports PHP, XML, JSON, and YAML files., (*2)

Requirements

  • PHP >= 5.4
  • symfony/yaml

Installation

$ composer require kasseler/config

Usage

Initialization Yaml configuration, (*3)

$config = new Repository(new YamlFileReader(), new YamlFileWriter(), __DIR__.'/app/config/');

Initialization XML configuration, (*4)

$config = new Repository(new XmlFileReader(), new XmlFileWriter(), __DIR__.'/app/config/');

Initialization JSON configuration, (*5)

$config = new Repository(new JsonFileReader(), new JsonFileWriter(), __DIR__.'/app/config/');

Initialization PHP array configuration, (*6)

$config = new Repository(new ArrayFileReader(), new ArrayFileWriter(), __DIR__.'/app/config/');

$config
    ->set('database.host', 'localhost')
    ->set('database.user', 'root')
    ->set('database.password', '')
    ->set('database.database', 'config')
    ->write();

$config->get('database.host');

The Versions

15/03 2015

dev-master

9999999-dev http://kasseler-cms.net

Configure files library

  Sources   Download

MIT

The Requires

 

by Igor Ognichenko

config config writer config reader

26/02 2015

1.0.1

1.0.1.0 http://kasseler-cms.net

Kasseler configure package

  Sources   Download

MIT

The Requires

 

by Igor Ognichenko

config config writer config reader

08/02 2015

1.0.0

1.0.0.0

Kasseler configure package

  Sources   Download

The Requires

 

by Igor Ognichenko