PHP Classes

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

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 105 This week: 1All time: 9,693 This week: 571Up
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
Age: 36
All time rank: 19864 in Cuba Cuba
Week rank: 420 Up1 in Cuba Cuba Up
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  
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  /  src  
File Role Description
Files folder imageSilex (1 directory)

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

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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:105
This week:1
All time:9,693
This week:571Up