PHPackages                             aaronadal/config-bundle - 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. aaronadal/config-bundle

ActiveSymfony-bundle

aaronadal/config-bundle
=======================

Bunde that offers some improvements in the configuration management of your Symfony application

v1.1(9y ago)0889MITPHPPHP &gt;=5.6

Since Mar 31Pushed 9y agoCompare

[ Source](https://github.com/aaronadal/config-bundle)[ Packagist](https://packagist.org/packages/aaronadal/config-bundle)[ RSS](/packages/aaronadal-config-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Config bundle
=============

[](#config-bundle)

This bundle offers some improvements in the configuration management of your Symfony application.

It allows you to write your application configuration to multiple environment-dependant files that will be loaded automatically when the application starts.

What benefits does this bundle offer?
-------------------------------------

[](#what-benefits-does-this-bundle-offer)

- It offers an important DX: you can organize your configuration into several files without having to include them manually in your main config file.
- It allows you to benefit from Symfony environments in a powerful way, and write different configurations for each of them easily.
- It also provides a way to first determine a default set of services and parameters and then override them depending on the environment.
- It takes advantage of the Symfony cache system, so it does not affect the loading time of your application.

Getting started
---------------

[](#getting-started)

### Install

[](#install)

You can use [Composer](https://getcomposer.org/) to install this bundle:

```
composer require aaronadal/config-bundle

```

After this, you need to register the bundle in your application kernel:

```
// app/AppKernel.php

public function registerBundles()
{
    return [
        // ...
        new Aaronadal\ConfigBundle\AaronadalConfigBundle(),
        // ...
    ];
}

```

**NOTE:** Do not forget to place it above the bundles that depend on the dynamically loaded parameters.

### Configure

[](#configure)

You can configure two locations (through [glob patterns](http://php.net/manual/en/function.glob.php)) in which the bundle will look for the configuration files:

- **Defaults**: determines the path where default configuration files reside.
- **Environment**: determines the path where environment-dependant configuration files reside. As you can see in the following example, there is an *:env* placeholder that references the environment at runtime (default: *dev* or *prod*).

Let's configure it in the config.yml:

```
aaronadal_config:
    location:
        defaults:    config/parameters/defaults/*.yml
        environment: config/parameters/:env/*.yml

```

That's all! Quite simple. Now, all yml files inside the `config/parameters/defaults/` folder will always be loaded and if the environment is, for example, *dev*, all the yml files inside the `config/parameters/dev/` folder will override the default values (or will define new ones if not defined).

**NOTE 1:** Due to the way in which parameters are resolved by Symfony, parameters cannot be used in the definition of the locations. Only the :env placeholder is valid.

**NOTE 2:** The locations may be absolute or relative paths. If they are relative paths, the kernel.root\_dir is taken as the reference path.

### Creating your own environments

[](#creating-your-own-environments)

Don't you know [how to create new environments in Symfony](http://symfony.com/doc/current/configuration/environments.html)?

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

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

Every ~0 days

Total

2

Last Release

3331d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f5d7c984fc75569bfd2b6ac18e83926de2cc1a773d09b6332757563b94fe322?d=identicon)[aaronadal](/maintainers/aaronadal)

---

Top Contributors

[![aaronadal](https://avatars.githubusercontent.com/u/23636214?v=4)](https://github.com/aaronadal "aaronadal (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aaronadal-config-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/aaronadal-config-bundle/health.svg)](https://phpackages.com/packages/aaronadal-config-bundle)
```

###  Alternatives

[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[rikudou/psr6-dynamo-db-bundle

PSR-6 and PSR-16 cache implementation using AWS DynamoDB for Symfony

2077.8k](/packages/rikudou-psr6-dynamo-db-bundle)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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