pieter / yaml
yaml parser for laravel 4
Installs: 1 273
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.0
- illuminate/support: 4.x|5.0.x
- symfony/yaml: 2.5.5
This package is not auto-updated.
Last update: 2024-12-16 15:59:41 UTC
README
Now this package support for laravel 5
This using symfony2 yaml component.
installing
for simple way, try using composer, add this on your composer.json file in require tag
"pieter/yaml": "dev-master"
and run from terminal
~/php composer.phar update "pieter/yaml"
after that, add this code on app/config/app.php
array(
'providers' => array (
other providers,
'Pieter\Yaml\YamlServiceProvider',
),
'aliases' => array (
other aliases,
'Yaml' => 'Pieter\Yaml\Facades\Yaml',
)
),
)
Config
If you want to create custom config, you can use default config and publish to your project config folder
~/php artisan config:publish pieter/yaml
How to use
just create in yaml on app/config folder and call from your controller
\Yaml::setFile('[your_file].yml');
return \Yaml::parsing();
enjoy it !