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: 103 All time: 9,365 This week: 324Up
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: 32
All time rank: 19966 in Cuba Cuba
Week rank: 643 Up3 in Cuba Cuba Up
Innovation award
Innovation award
Nominee: 1x

Details

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:103
This week:0
All time:9,365
This week:324Up

For more information send a message to info at phpclasses dot org.