PHPackages                             devitek/yaml-configuration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. devitek/yaml-configuration

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

devitek/yaml-configuration
==========================

Add YAML file support to Laravel Configuration

3.1.1(9y ago)1614.1k↓33.3%7[1 PRs](https://github.com/Devitek/laravel-yaml-configuration/pulls)MITPHPPHP &gt;=5.4.0

Since May 24Pushed 2y ago3 watchersCompare

[ Source](https://github.com/Devitek/laravel-yaml-configuration)[ Packagist](https://packagist.org/packages/devitek/yaml-configuration)[ RSS](/packages/devitek-yaml-configuration/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (16)Used By (0)

Add Yaml file support for Laravel 5.2 Configuration
===================================================

[](#add-yaml-file-support-for-laravel-52-configuration)

[![SensioLabsInsight](https://camo.githubusercontent.com/0af00cdf40abd5007e6a5eafc14e5ba7aa1838f3c81180607d18c2e23b30d6f2/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31393239353839362d623730622d343364652d383437362d6230336434316665376338322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/19295896-b70b-43de-8476-b03d41fe7c82)[![Latest Stable Version](https://camo.githubusercontent.com/b81c6416d13fbc34c497179d0c75bf7d2130d106b96bd74ee5a33e3fa8d67fef/68747470733a2f2f706f7365722e707567782e6f72672f6465766974656b2f79616d6c2d636f6e66696775726174696f6e2f762f737461626c65)](https://packagist.org/packages/devitek/yaml-configuration)[![Total Downloads](https://camo.githubusercontent.com/155c1ea4a8469049f8ba97263f79ca8c3051f1347087229ad4d6c4d63a00a21a/68747470733a2f2f706f7365722e707567782e6f72672f6465766974656b2f79616d6c2d636f6e66696775726174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/devitek/yaml-configuration)[![Latest Unstable Version](https://camo.githubusercontent.com/026cdbc7a9093f42374ebe2b07df45152f3e0f99ef26713b35ede42a1064e093/68747470733a2f2f706f7365722e707567782e6f72672f6465766974656b2f79616d6c2d636f6e66696775726174696f6e2f762f756e737461626c65)](https://packagist.org/packages/devitek/yaml-configuration)[![License](https://camo.githubusercontent.com/b47c3f451b67cf4e73de3debf2b07e0859d37bda99e0cb68f7026eec1f24ff91/68747470733a2f2f706f7365722e707567782e6f72672f6465766974656b2f79616d6c2d636f6e66696775726174696f6e2f6c6963656e7365)](https://packagist.org/packages/devitek/yaml-configuration)

This package uses Symfony/Yaml parser.

Installing
----------

[](#installing)

Add `"devitek/yaml-configuration": "3.1.*"` to your **composer.json** by running :

```
php composer.phar require devitek/yaml-configuration

```

And select version : `3.1.*`

Add support in Laravel
----------------------

[](#add-support-in-laravel)

You have to add (or merge)

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

to your **app/Http/Kernel.php** and/or **app/Console/Kernel.php**.

How to use
----------

[](#how-to-use)

Just use regular **php** files or use **yml** or **yaml** files instead.

**PHP** :

```
