2017 © Pedro Peláez
 

library yaml-config

YAML config utilize symfony components (The Config Component and The Yaml Component) to provide symfony like configuration for any application.

image

keiii/yaml-config

YAML config utilize symfony components (The Config Component and The Yaml Component) to provide symfony like configuration for any application.

  • Monday, September 26, 2016
  • by KEIII
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,558 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

Build Status, (*1)

Utilize symfony components (The Config Component and The Yaml Component) to provide symfony like configuration for any application., (*2)

Installation

composer require keiii/yaml-config

Config example

# /parameters.yml
parameters:
    db_username: 'root'
    db_password: 'secret'
# /config/config.env.yml
imports:
    - { resource: '../parameters.yml' }

database:
    username: '%db_username%'
    password: '%db_password%'

Usage

<?php

$loader = \KEIII\YamlConfig\Factory::create(
    __DIR__.'/config', // configs path
    ['key' => 'value'], // replacements
    __DIR__.'/var/cache' // cache path or false
);

$config = $loader->load('config.env.yml'); // array

The Versions

26/09 2016

dev-master

9999999-dev https://github.com/KEIII

YAML config utilize symfony components (The Config Component and The Yaml Component) to provide symfony like configuration for any application.

  Sources   Download

MIT

The Requires

 

The Development Requires

config yaml

26/09 2016

0.2.1

0.2.1.0 https://github.com/KEIII

YAML config utilize symfony components (The Config Component and The Yaml Component) to provide symfony like configuration for any application.

  Sources   Download

MIT

The Requires

 

The Development Requires

config yaml

02/09 2016

0.2

0.2.0.0 https://github.com/KEIII

YAML config utilize symfony components (The Config Component and The Yaml Component) to provide symfony like configuration for any application.

  Sources   Download

MIT

The Requires

 

The Development Requires

config yaml