2017 © Pedro Peláez
 

library yaml-configuration

Add YAML file support to Laravel Configuration

image

devitek/yaml-configuration

Add YAML file support to Laravel Configuration

  • Saturday, August 20, 2016
  • by CaporalDead
  • Repository
  • 2 Watchers
  • 15 Stars
  • 6,875 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 15 Versions
  • 3 % Grown

The README.md

Add Yaml file support for Laravel 5.2 Configuration

SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

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

Installing

Add "devitek/yaml-configuration": "3.1.*" to your composer.json by running :, (*3)

php composer.phar require devitek/yaml-configuration

And select version : 3.1.*, (*4)

Add support in Laravel

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

protected function bootstrappers()
{
    $this->bootstrappers[] = 'Devitek\Core\Config\LoadYamlConfiguration';
    return $this->bootstrappers;
}

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

How to use

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

PHP :, (*8)

<?php

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

Will be equivalent to :, (*9)

YAML, (*10)

debug: false
key: foobar

Use functions

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

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

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

The Versions

20/08 2016

dev-master

9999999-dev

Add YAML file support to Laravel Configuration

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

20/08 2016

3.1.1

3.1.1.0

Add YAML file support to Laravel Configuration

  Sources   Download

MIT

The Requires

 

by Thomas SIEFFERT

25/06 2016

3.1

3.1.0.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

17/04 2016

3.0

3.0.0.0

Add YAML file support to Laravel Configuration

  Sources   Download

The Requires

 

by Thomas SIEFFERT

18/03 2016

2.2

2.2.0.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