PHP Classes

Silex YAML Configuration Service Provider: Load and parse YAML configuration files for Silex

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 106 All time: 9,710 This week: 31Up
Version License PHP version Categories
yaml-config-service 0.8MIT/X Consortium ...5.4PHP 5, Libraries, Configuration
Description 

Author

This class can load and parse YAML configuration files for Silex.

It extends the base Silex service provider class to load and parse and YAML file.

The configuration values read from the YAML file are merged into the current configuration values after parameter substitution.

Picture of Rafael Espinosa
  Performance   Level  
Name: Rafael Espinosa <contact>
Classes: 6 packages by
Country: Cuba Cuba
Innovation award
Innovation award
Nominee: 1x

Documentation

Yaml Config Service Provider

Yaml config service provider for Silex.

Currently supports imports statements and parameters substitution. See an example from Silex Enhanced.

...
$app->register(
    new \Fluency\Silex\Provider\YamlConfigServiceProvider(
        array(
            '%base_path%' => BASEPATH, '%log_path%' => BASEPATH . '/var/logs',
            '%cache_path%' => BASEPATH . '/var/cache'
        )
    ),
    array(
        'config.dir' => BASEPATH . '/app/Resources/config',
        'config.files' => array('application.yml', 'routing.yml', 'security.yml'),
    )
);
...


  Files folder image Files (4)  
File Role Description
Files folder imagesrc (1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. Auxiliary data
Accessible without login Plain text file README.md Doc. Auxiliary data

  Files folder image Files (4)  /  src  
File Role Description
Files folder imageSilex (1 directory)

  Files folder image Files (4)  /  src  /  Silex  
File Role Description
Files folder imageProvider (1 file)

  Files folder image Files (4)  /  src  /  Silex  /  Provider  
File Role Description
  Plain text file YamlConfigServiceProvider.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:106
This week:0
All time:9,710
This week:31Up