Add YAML file support to Laravel Configuration
This package uses Symfony/Yaml parser.
"devitek/yaml-configuration": "1.*" to your composer.json by running :
php composer.phar require devitek/yaml-configuration
And select version :
You have to replace
$app = new Illuminate\Foundation\Application(
$app = new Devitek\Core\Foundation\Application(
Just use regular php files or use yml or yaml files instead.
<?php return [ 'debug' => false, 'key' => 'foobar', ];
Will be equivalent to :
debug: false key: foobar
You can use paths helpers provided by Laravel like that :
routes_file: %app_path%/routes.php unit_test: %base_path%/behat.yml main_style: %public_path%/css/style.css manifest: %storage_path%/meta
- %app_path% refers to app_path()
- %base_path% refers to base_path()
- %public_path% refers to public_path()
- %storage_path% refers to storage_path()
Enjoy it ! Feel free to fork :) !