PHPackages                             sergiors/config-service-provider - 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. sergiors/config-service-provider

Abandoned → [sergiors/lullaby](/?search=sergiors%2Flullaby)Library[Utility &amp; Helpers](/categories/utility)

sergiors/config-service-provider
================================

Load yaml, php, directory config to into your container

2.0.0(10y ago)13392MITPHPPHP &gt;=5.5

Since Oct 16Pushed 9y ago2 watchersCompare

[ Source](https://github.com/sergiors/config-service-provider)[ Packagist](https://packagist.org/packages/sergiors/config-service-provider)[ RSS](/packages/sergiors-config-service-provider/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (11)Versions (10)Used By (2)

Config Service Provider
-----------------------

[](#config-service-provider)

Install
-------

[](#install)

```
composer require sergiors/config-service-provider

```

How to use
----------

[](#how-to-use)

Let's imagine you want to load the following yaml file:

```
imports:
    - { resource: config.yml }

twig.options:
    debug: false

db.options:
    driver: ~
    host: ~
    user: ~
    password: ~
    dbname: ~

routing.options:
    paths: %root_dir%/app/routing.yml
```

In your php file

```
use Sergiors\Silex\Provider\ConfigServiceProvider;

$app->register(new ConfigServiceProvider(), [
    'config.filenames' => '%root_dir%/config/config_%env%.yml',
    'config.replacements' => [
        'root_dir' => dirname(__DIR__)
    ]
]);

$app['config.initializer']();
```

Now you can access `$app['twig.options']['debug']` and others

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~28 days

Total

9

Last Release

3684d ago

Major Versions

1.2.2 → 2.0.02016-05-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/75b67763139f7a8c96302299f5a40a386d565829af3061bb55465c8808d54428?d=identicon)[sergiors](/maintainers/sergiors)

---

Top Contributors

[![sergiors](https://avatars.githubusercontent.com/u/2046276?v=4)](https://github.com/sergiors "sergiors (34 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sergiors-config-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/sergiors-config-service-provider/health.svg)](https://phpackages.com/packages/sergiors-config-service-provider)
```

PHPackages © 2026

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