PHPackages                             c0ntax/env-providers-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. c0ntax/env-providers-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

c0ntax/env-providers-bundle
===========================

A collection of extensions to allow you to use symfony .env files easier

0.1.1(8y ago)07Apache-2.0PHPPHP &gt;=7.1CI failing

Since Mar 9Pushed 8y agoCompare

[ Source](https://github.com/c0ntax/env-providers-bundle)[ Packagist](https://packagist.org/packages/c0ntax/env-providers-bundle)[ Docs](https://github.com/c0ntax/env-providers-bundle)[ RSS](/packages/c0ntax-env-providers-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (9)Versions (4)Used By (0)

env-providers-bundle
====================

[](#env-providers-bundle)

Some extra env providers to make using Symfony 3+ .env files not such a pain

Introduction
------------

[](#introduction)

&lt;rant type="personal"&gt;I much prefer the old parameters.yml way of doing things as it was more flexible, but Symfony has decided to move to dotenv, so...&lt;/rant&gt; This bundle adds in 'missing' ways to parse dotenv variables so that you can not hate it so much.

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

[](#installation)

You know the score:

```
composer require c0ntax/env-providers-bundle
```

And don't forget to add the following to your Kernel if you're not using Flex:

```
    public function registerBundles()
    {
        $bundles = [
            // ...
            new C0ntax\EnvProvidersBundle\C0ntaxEnvProvidersBundle(),
            // ...
        ];
    }
```

Configuration
-------------

[](#configuration)

Currently, a little configuration-light, you can add the following:

```
c0ntax_env_providers:
    array:
        return_null_if_empty: true # If the env variable = '' then return a null instead of an empty array
```

Usage
-----

[](#usage)

In your .env file

```
ENV_VAR=this,that, other
```

and then in your configuration

```
parameters:
    array_thing: '%env(array:ENV_VAR)%'
```

Err, that's it. `array_thing` now equals `['this', 'that', 'other']`

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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 ~12 days

Total

2

Last Release

2978d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

symfonybundleconfigdotenv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/c0ntax-env-providers-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/c0ntax-env-providers-bundle/health.svg)](https://phpackages.com/packages/c0ntax-env-providers-bundle)
```

###  Alternatives

[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[sineflow/clamav

ClamAV PHP Client for Symfony

10168.5k](/packages/sineflow-clamav)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)

PHPackages © 2026

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