Package Data | |
---|---|
Maintainer Username: | CaporalDead |
Maintainer Contact: | thomas.sieffert@devitek.fr (Thomas SIEFFERT) |
Package Create Date: | 2014-05-24 |
Package Last Update: | 2024-04-24 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:23:07 |
Package Statistics | |
---|---|
Total Downloads: | 13,291 |
Monthly Downloads: | 86 |
Daily Downloads: | 3 |
Total Stars: | 16 |
Total Watchers: | 4 |
Total Forks: | 7 |
Total Open Issues: | 1 |
This package uses Symfony/Yaml parser.
Add "devitek/yaml-configuration": "3.1.*"
to your composer.json by running :
php composer.phar require devitek/yaml-configuration
And select version : 3.1.*
You have to add (or merge)
protected function bootstrappers()
{
$this->bootstrappers[] = 'Devitek\Core\Config\LoadYamlConfiguration';
return $this->bootstrappers;
}
to your app/Http/Kernel.php and/or app/Console/Kernel.php.
Just use regular php files or use yml or yaml files instead.
PHP :
<?php
return [
'debug' => false,
'key' => 'foobar',
];
Will be equivalent to :
YAML
debug: false
key: foobar
You can use any php functions like that :
routes_file: %app_path%/routes.php
unit_test: %base_path:behat.yml%
something: %sprintf:hell %s,world%
Enjoy it ! Feel free to fork :) !