PHPackages                             kennisnet/symfony-env-loader - 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. kennisnet/symfony-env-loader

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

kennisnet/symfony-env-loader
============================

Loads the envs variables tier based

1.0.10(2y ago)012.8k↓90.3%2MITPHPPHP ^7.0||^8.1

Since Oct 23Pushed 2y ago3 watchersCompare

[ Source](https://github.com/kennisnet/symfony-env-loader)[ Packagist](https://packagist.org/packages/kennisnet/symfony-env-loader)[ Docs](https://github.com/kennisnet/symfony-env-loader)[ RSS](/packages/kennisnet-symfony-env-loader/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (6)Versions (13)Used By (0)

symfony-env-loader
==================

[](#symfony-env-loader)

This package let's you load env files on a tier based setup. You can have the following files depending on you environments:

.env .env.dist .env.dev .env.test .env.staging .env.production .env.local

The .env.local should have at least a APP\_ENV=dev file in order for the package to fetch the correct dev env file for you local development environment.

Furthermore you have to create a bootstrap.php file in your config folder in order to call the EnvironmentVars class. And put this in your bootstrap.php:

```
require dirname(__DIR__).'/vendor/autoload.php';

use Kennisnet\DTO\AppEnv;
use Kennisnet\Env\EnvironmentVars;

$basePath = dirname(__DIR__);
EnvironmentVars::setAppEnvClassName(AppEnv::class);
EnvironmentVars::loadEnv($basePath);

```

Lastly replace the `autoload.php` line with `bootstrap.php` in your `public/index.php file`Here is a example:

public/index.php `require dirname(__DIR__).'/config/bootstrap.php';`

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% 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 ~161 days

Recently: every ~298 days

Total

10

Last Release

992d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.0.7PHP ^7.0||^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d5ba0d19fd97386ecc8e71a479f33fd1bc47f20b151c52c04c091faf3be186d?d=identicon)[kennisnet](/maintainers/kennisnet)

---

Top Contributors

[![khallouki](https://avatars.githubusercontent.com/u/3285427?v=4)](https://github.com/khallouki "khallouki (10 commits)")[![gewooneendeveloper](https://avatars.githubusercontent.com/u/302548?v=4)](https://github.com/gewooneendeveloper "gewooneendeveloper (2 commits)")[![wimmuskee](https://avatars.githubusercontent.com/u/1087783?v=4)](https://github.com/wimmuskee "wimmuskee (1 commits)")

### Embed Badge

![Health badge](/badges/kennisnet-symfony-env-loader/health.svg)

```
[![Health](https://phpackages.com/badges/kennisnet-symfony-env-loader/health.svg)](https://phpackages.com/packages/kennisnet-symfony-env-loader)
```

###  Alternatives

[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

57307.1k3](/packages/creagia-filament-code-field)[element119/module-indexer-deploy-config

A Magento 2 module that allows developers to lock indexer modes via deployment config.

35151.9k](/packages/element119-module-indexer-deploy-config)

PHPackages © 2026

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