PHPackages                             maer/config-yaml-reader - 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. maer/config-yaml-reader

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

maer/config-yaml-reader
=======================

A yaml reader for the maer/config library

1.0.0(8y ago)011MITPHPPHP &gt;=7.0.0

Since Apr 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/magnus-eriksson/config-yaml-reader)[ Packagist](https://packagist.org/packages/maer/config-yaml-reader)[ RSS](/packages/maer-config-yaml-reader/feed)WikiDiscussions develop Synced yesterday

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

Yaml reader for maer/config
===========================

[](#yaml-reader-for-maerconfig)

[![Build Status](https://camo.githubusercontent.com/06c618a9145c96c249de83a28b78314d6ca64a08ffbd4610c1afffdfb6ca59ba/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d61676e75732d6572696b73736f6e2f636f6e6669672d79616d6c2d7265616465722e737667)](https://travis-ci.org/magnus-eriksson/config-yaml-reader)

To keep the [maer/config](https://github.com/magnus-eriksson/config) library small and without dependencies, it doesn't support yaml-files out of the box.

If you want to use yaml-files, you can install this reader and register it for the yaml-file extension. This extension requires you to use maer/config version 2+.

Install
-------

[](#install)

```
composer require maer/config-yaml-reader

```

*If maer/config wasn't installed before, it will also be installed.*

Register
--------

[](#register)

You need to register the reader and associate it with the `yml`-file extension.

```
# Either add the reader to an existing config instance
$config->setReader('yml', new Maer\Config\Yaml\Reader);

# or you can add the reader when you instantiate the config class as a second argument
$options = [
    'readers' => [
        'yml' => new Maer\Config\Yaml\Reader,
    ],
];

$config = new Config(['/path-to-your-config.yml'], $options);
```

If you go for the first option, you need to set the reader *before* you load the yaml-file.

Exceptions
----------

[](#exceptions)

If the yaml file couldn't be parsed, it will throw a `Symfony\Component\Yaml\Exception\ParseException`.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2953d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ada6171adca1bf89432dd54fff188ef3d890a71734278bd06b54487f45b5695?d=identicon)[maer](/maintainers/maer)

---

Top Contributors

[![magnus-eriksson](https://avatars.githubusercontent.com/u/3640297?v=4)](https://github.com/magnus-eriksson "magnus-eriksson (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/maer-config-yaml-reader/health.svg)

```
[![Health](https://phpackages.com/badges/maer-config-yaml-reader/health.svg)](https://phpackages.com/packages/maer-config-yaml-reader)
```

###  Alternatives

[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)[pixelopen/cloudflare-turnstile-bundle

A simple package to help integrate Cloudflare Turnstile on Symfony.

31205.8k3](/packages/pixelopen-cloudflare-turnstile-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[sineflow/clamav

ClamAV PHP Client for Symfony

10168.5k](/packages/sineflow-clamav)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
