PHPackages                             maxwell2022/yamlconfigprovider - 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. maxwell2022/yamlconfigprovider

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

maxwell2022/yamlconfigprovider
==============================

v1.0.0(12y ago)130[1 PRs](https://github.com/Maxwell2022/YamlConfigProvider/pulls)MITPHPPHP &gt;=5.3.0

Since Feb 6Pushed 3y agoCompare

[ Source](https://github.com/Maxwell2022/YamlConfigProvider)[ Packagist](https://packagist.org/packages/maxwell2022/yamlconfigprovider)[ Docs](https://github.com/Maxwell2022/YamlConfigProvider)[ RSS](/packages/maxwell2022-yamlconfigprovider/feed)WikiDiscussions master Synced 2mo ago

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

YamlConfigProvider
==================

[](#yamlconfigprovider)

Silex Provider to parse YAML configuration file and cache it if cache is registered

[![Latest Stable Version](https://camo.githubusercontent.com/0bcf8ffce7649b3e640aeb73f96242ad3a3456d3e76f6645aafb4af5cba1d222/68747470733a2f2f706f7365722e707567782e6f72672f6d617877656c6c323032322f79616d6c636f6e66696770726f76696465722f762f737461626c652e706e67)](https://packagist.org/packages/maxwell2022/yamlconfigprovider) [![Total Downloads](https://camo.githubusercontent.com/9d613a5c81d0b9447ab94a9def0e271172a6156f6427feb6c44d1c1b1d2e1478/68747470733a2f2f706f7365722e707567782e6f72672f6d617877656c6c323032322f79616d6c636f6e66696770726f76696465722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/maxwell2022/yamlconfigprovider)

This Provider is inspired by [deralex](https://github.com/deralex/YamlConfigServiceProvider)

The difference is that the configuration is:

- Lazy loaded
- Cached to avoid to parse it at every page load (if cache is registered)

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

[](#installation)

Using your composer.json:

```
{
    "maxwell2022/yamlconfigprovider": "dev-master"
}
```

```
$ ./composer.phar update
```

Provider registration
=====================

[](#provider-registration)

```
$app->register(new \Maxwell2022\Silex\Provider\YamlConfigProvider(), array(
    'config.file' => __DIR__.'/config/config.yml'
));
```

Example using cache
===================

[](#example-using-cache)

```
$app['cache.path'] = __DIR__.'/../cache';

$app->register(new \CHH\Silex\CacheServiceProvider, array(
    'cache.options' => array(
        'default' => array('driver' => 'apc'),
        'file' => array(
            'driver' => 'filesystem',
            'directory' => $app['cache.path']
        )
    )
));

$app->register(new \Maxwell2022\Silex\Provider\YamlConfigProvider(), array(
    'config.file' => __DIR__.'/Config/config.yml',
));
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

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

4475d ago

### Community

Maintainers

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

---

Top Contributors

[![Maxwell2022](https://avatars.githubusercontent.com/u/670701?v=4)](https://github.com/Maxwell2022 "Maxwell2022 (9 commits)")

---

Tags

configyamlsilex

### Embed Badge

![Health badge](/badges/maxwell2022-yamlconfigprovider/health.svg)

```
[![Health](https://phpackages.com/badges/maxwell2022-yamlconfigprovider/health.svg)](https://phpackages.com/packages/maxwell2022-yamlconfigprovider)
```

###  Alternatives

[pragmarx/yaml

Load your Laravel config files using yaml

1152.8M29](/packages/pragmarx-yaml)

PHPackages © 2026

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