2017 © Pedro Peláez
 

library yaml

A package to add Yaml file support for Laravel 4 Configuration

image

bosnadev/yaml

A package to add Yaml file support for Laravel 4 Configuration

  • Tuesday, March 3, 2015
  • by mirzap
  • Repository
  • 2 Watchers
  • 3 Stars
  • 274 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 4 Versions
  • 35 % Grown

The README.md

Yaml file support for Laravel 4 Configuration

This package is based on a devitek/yaml-configuration package. It uses Symfony/Yaml parser. Yaml configuration package is part of Larapress CMS., (*1)

Installation

Run the following command from your terminal:, (*2)

composer require "bosnadev/yaml: 1.*"

or add this to require section in your composer.json file:, (*3)

"bosnadev/yaml": "1.*"

and run composer update, (*4)

After updating composer, add the YamlServiceProvider to the providers array in app/config/app.php, (*5)

'providers' => [
  // other providers
  ...

  'Bosnadev\Yaml\YamlServiceProvider'
];

And that's it! You can now add your .yaml configuration files into app/config or in your package config folders. You can continue to use regular php files for configs., (*6)

PHP:, (*7)

<?php
return [
  'enable_registration' => true,
  'themes_dir'          => %public_path%/themes
];

Will be equivalent to :, (*8)

---
enable_registration: true
themes_dir: %public_path%/themes

Paths Helpers

You can use paths helpers provided by Laravel like that :, (*9)

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()

License

This package is open-sourced software licensed under MIT License., (*10)

The Versions

03/03 2015

dev-master

9999999-dev

A package to add Yaml file support for Laravel 4 Configuration

  Sources   Download

The Requires

 

by Mirza Pasic

laravel config symfony yaml larapress

08/11 2014

1.1

1.1.0.0

A package to add Yaml file support for Laravel 4 Configuration

  Sources   Download

The Requires

 

by Mirza Pasic

laravel config symfony yaml larapress

08/11 2014

1.0.1

1.0.1.0

A package to add Yaml file support for Laravel 4 Configuration

  Sources   Download

The Requires

 

by Mirza Pasic

laravel config symfony yaml larapress

07/11 2014

1.0

1.0.0.0

A package to add Yaml file support for Laravel 4 Configuration

  Sources   Download

The Requires

 

by Mirza Pasic

laravel config symfony yaml larapress