2017 © Pedro Peláez
 

library yaml-configuration-service-provider

YAML Configuration Service Provider for Silex

image

junker/yaml-configuration-service-provider

YAML Configuration Service Provider for Silex

  • Friday, May 27, 2016
  • by Junker
  • Repository
  • 1 Watchers
  • 3 Stars
  • 483 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

YamlConfigurationServiceProvider

YAML Configuration Service Provider for Silex, (*1)

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

Requirements

silex 2.x, (*3)

Installation

The best way to install YamlConfigurationServiceProvider is to use a Composer:, (*4)

php composer.phar require junker/yaml-configuration-service-provider

Supports

Examples

use Junker\Silex\Provider\YamlConfigurationServiceProvider;

$app->register(new YamlConfigurationServiceProvider('config.yml'));

# or

$app->register(new YamlConfigurationServiceProvider('config.yml', ['cache_dir' => '/tmp/config_cache']));

$db_host = $app['config']['db']['host'];

Config example:, (*5)

imports:
     - { resource: 'site/config.yml' }
     - { resource: 'security.yml' }

db:
    host: localhost
    login: root
    pass: 123123
    database: site12

facebook:
    scope: 'public_profile,email,user_birthday,user_location,user_photos'
    secret_key: FDSLKFDNSLsdre23lkndas

The Versions

27/05 2016

dev-master

9999999-dev

YAML Configuration Service Provider for Silex

  Sources   Download

MIT

The Requires

 

by Dmitry Kosenkov

configuration config silex yaml

20/02 2016

0.1.2

0.1.2.0

YAML Configuration Service Provider for Silex

  Sources   Download

MIT

The Requires

 

by Dmitry Kosenkov

config silex

19/02 2016

0.1.1

0.1.1.0

YAML Configuration Service Provider for Silex

  Sources   Download

MIT

The Requires

 

by Dmitry Kosenkov

config silex

11/02 2016

0.1.0

0.1.0.0

YAML Configuration Service Provider for Silex

  Sources   Download

MIT

The Requires

 

by Dmitry Kosenkov

config silex