PHPackages                             dragooon/yaml-file-config - 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. dragooon/yaml-file-config

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

dragooon/yaml-file-config
=========================

Yaml file configuration handler

0.1.0(10y ago)540MITPHP

Since Dec 30Pushed 10y ago2 watchersCompare

[ Source](https://github.com/Dragooon/yaml-file-config)[ Packagist](https://packagist.org/packages/dragooon/yaml-file-config)[ RSS](/packages/dragooon-yaml-file-config/feed)WikiDiscussions master Synced 3w ago

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

Yaml File Configuration
=======================

[](#yaml-file-configuration)

Simple library for loading and accessing configuration stored in .yml files. It relies on [symfony/yaml](http://github.com/symfony/yaml) for its functions. The library avoids loading Yaml file until requested (lazy loading) to avoid unnecessary loading and parsing.

Installation
------------

[](#installation)

You can install the project via composer

`composer require dragooon/yaml-file-config`

Usage
-----

[](#usage)

### config.yml

[](#configyml)

```
timeout: 10
parameter:
  a: 1
  b: 2
name: abc
```

### app.php

[](#appphp)

```
$config = new \Dragooon\YamlFileConfig\YamlFileConfig('config.yml');
echo $config['timeout']; // 10
echo $config['parameter']['a']; // 1;
echo $config->get('name'); // abc

// You can also modify the configuration by either of the following
$config['timeout'] = 20;
$config->set('parameter', [
    'a' => 2,
    'b' => 3,
]);

// And finally save the file to write into config.yml
$config->save();
```

License
-------

[](#license)

The project is licensed under The MIT License. See LICENSE for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

3829d ago

### Community

Maintainers

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

---

Top Contributors

[![Dragooon](https://avatars.githubusercontent.com/u/551634?v=4)](https://github.com/Dragooon "Dragooon (12 commits)")

### Embed Badge

![Health badge](/badges/dragooon-yaml-file-config/health.svg)

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

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49517.1k](/packages/blackfire-player)[altis/local-server

Local Server module for Altis

18217.0k2](/packages/altis-local-server)

PHPackages © 2026

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