2017 © Pedro Peláez
 

library yaml

yaml parser for laravel 4

image

pieter/yaml

yaml parser for laravel 4

  • Wednesday, October 1, 2014
  • by broklyngagah
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,211 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

L4-yaml file parser

Now this package support for laravel 5, (*1)

This using symfony2 yaml component., (*2)

installing

for simple way, try using composer, add this on your composer.json file in require tag, (*3)

"pieter/yaml": "dev-master"

and run from terminal, (*4)

~/php composer.phar update "pieter/yaml"

after that, add this code on app/config/app.php, (*5)

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, (*6)

~/php artisan config:publish pieter/yaml

How to use

just create in yaml on app/config folder and call from your controller, (*7)

\Yaml::setFile('[your_file].yml');
return \Yaml::parsing();

enjoy it !, (*8)

The Versions

01/10 2014

dev-master

9999999-dev

yaml parser for laravel 4

  Sources   Download

MIT

The Requires

 

by broklyngagah aka pieter lelaona

laravel parser yaml