PHPackages                             nvanheuverzwijn/php-config-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. nvanheuverzwijn/php-config-yaml

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

nvanheuverzwijn/php-config-yaml
===============================

A yaml configuration reader

0.0.1(8y ago)012LGPL3.0PHPPHP &gt;=5.6.0

Since Jun 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nvanheuverzwijn/php-config-yaml)[ Packagist](https://packagist.org/packages/nvanheuverzwijn/php-config-yaml)[ Docs](http://github.com/nvanheuverzwijn/php-config-yml)[ RSS](/packages/nvanheuverzwijn-php-config-yaml/feed)WikiDiscussions master Synced yesterday

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

php-config-yaml
===============

[](#php-config-yaml)

A yaml configuration parser. This is part of a larger configuration library found [here](https://github.com/nvanheuverzwijn/php-config).

Usage
-----

[](#usage)

This yaml reader accept a configuration array as an argument. It supports two key: `file` to specify a yml file to read and `yaml_parser` to specify a callable function that parse yaml.

Directly using this reader like this.

```
$reader = new Yaml\Reader([
    'file' => '/some/file.yml',
    'yaml_parser' => '\Symfony\Component\Yaml\Yaml::parse'
]);
$array = $reader->fetchAll();

```

Use this reader with `\Zwijn\Config`.

```
$conf = \Zwijn\Config\ConfigFactory::fromArray([
    'reader' => [
        [
            'class' => '\Zwijn\Config\Yaml\Reader'
            'config' => [
                'file' => '/some/file.yml',
                'yaml_parser' => '\Symfony\Component\Yaml\Yaml::parse'
            ]
        ]
    ]
]);

```

Dependency
----------

[](#dependency)

`make composer`

Test
----

[](#test)

`make test`

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3250d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c21f8d2f74fa213c055b9ace0b8320f44bd1e9df47996e977fe9c0699db23df2?d=identicon)[nvanheuverzwijn](/maintainers/nvanheuverzwijn)

---

Top Contributors

[![nvanheuverzwijn](https://avatars.githubusercontent.com/u/943226?v=4)](https://github.com/nvanheuverzwijn "nvanheuverzwijn (3 commits)")

---

Tags

configurationconfigyamlyml

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nvanheuverzwijn-php-config-yaml/health.svg)

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

###  Alternatives

[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

69124.2k1](/packages/m1-vars)[thewunder/conphigure

Framework Agnostic Configuration Library

3115.9k](/packages/thewunder-conphigure)[northwoods/config

Simple configuration loader

1516.0k](/packages/northwoods-config)

PHPackages © 2026

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