2017 © Pedro Peláez
 

library laravel-yaml-configuration

Add YAML file support to Laravel Configuration

image

krom/laravel-yaml-configuration

Add YAML file support to Laravel Configuration

  • Tuesday, December 29, 2015
  • by kudlayry
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Add Yaml file support for Laravel 5.1 Configuration

This package uses Symfony/Yaml parser., (*1)

Installing

Add "krom/laravel-yaml-configuration": "2.*" to your composer.json by running :, (*2)

php composer.phar require krom/laravel-yaml-configuration

And select version : 2.*, (*3)

Add support in Laravel

You have to add (or merge), (*4)

protected function bootstrappers()
{
    return array_merge($this->bootstrappers, [\\krom\\Core\\Config\\LoadYamlConfiguration::class]);
}

to your app/Http/Kernel.php and/or app/Console/Kernel.php., (*5)

How to use

Just use regular php files or use yml or yaml files instead., (*6)

PHP :, (*7)

<?php

return [
    'debug' => false,
    'key' => 'foobar',
];

Will be equivalent to :, (*8)

YAML, (*9)

debug: false
key: foobar

Use functions

You can use any php functions like that :, (*10)

routes_file: %app_path%/routes.php
unit_test: %base_path:behat.yml%
something: %sprintf:hell %s,world%

Enjoy it ! Feel free to fork :) !, (*11)

This package is fork of devitek/yaml-configuration, (*12)

The Versions

29/12 2015

dev-master

9999999-dev

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT
by Roman Kudlay

29/12 2015

2.1.2

2.1.2.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

29/12 2015

2.1.1

2.1.1.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

19/10 2015

2.1

2.1.0.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

09/08 2015

2.0.1

2.0.1.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

06/08 2015

2.0

2.0.0.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

19/03 2015

1.0.1

1.0.1.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

19/03 2015

1.0

1.0.0.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

15/07 2014

0.1.4

0.1.4.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

14/07 2014

0.1.3

0.1.3.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

01/06 2014

0.1.2

0.1.2.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

24/05 2014

0.1.1

0.1.1.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

24/05 2014

0.1

0.1.0.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT