PHPackages                             bosnadev/yaml - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. bosnadev/yaml

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

bosnadev/yaml
=============

A package to add Yaml file support for Laravel 4 Configuration

1.1(11y ago)33.1k1[2 issues](https://github.com/bosnadev/yaml/issues)PHPPHP &gt;=5.4.0

Since Nov 7Pushed 11y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

Yaml file support for Laravel 4 Configuration
=============================================

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

This package is based on a [devitek/yaml-configuration](https://github.com/Devitek/laravel-yaml-configuration/) package. It uses Symfony/Yaml parser. Yaml configuration package is part of Larapress CMS.

Installation
============

[](#installation)

Run the following command from your terminal:

```
composer require "bosnadev/yaml: 1.*"

```

or add this to require section in your composer.json file:

```
"bosnadev/yaml": "1.*"

```

and run `composer update`

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

```
'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.

PHP:

```
