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

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

adistoe/env-loader
==================

A loader for environment variables

1.2.0(8mo ago)251911MITPHPPHP &gt;=7.1

Since Feb 26Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/adistoe/EnvLoader)[ Packagist](https://packagist.org/packages/adistoe/env-loader)[ RSS](/packages/adistoe-env-loader/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (4)Used By (1)

EnvLoader
=========

[](#envloader)

A PHP class to load environment variables from .env files

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

[](#installation)

Install it using composer:

```
composer require adistoe/env-loader

```

Getting Started
---------------

[](#getting-started)

Create a .env file or copy the .env.example (rename it to .env) and modify it as needed.
Then you can load the file with the following code:

```
EnvLoader::load('path/to/your/project/');
```

If no .env file exists in the given path, the EnvLoader will automatically search for a .env file in all subdirectories.

If the file is loaded correctly you can access your environment variables with over the php function:

```
getenv('NAME_OF_THE_VARIABLE');
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance60

Regular maintenance activity

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

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

Total

3

Last Release

251d ago

PHP version history (3 changes)1.0.0PHP &gt;=7.4

1.1.0PHP &gt;=7.0

1.2.0PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1352542?v=4)[adistoe](/maintainers/adistoe)[@adistoe](https://github.com/adistoe)

---

Top Contributors

[![adistoe](https://avatars.githubusercontent.com/u/1352542?v=4)](https://github.com/adistoe "adistoe (13 commits)")

### Embed Badge

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

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

###  Alternatives

[pantheon-systems/site-audit-tool

Drush global extension to run Site Audit checks on Drush 8 and 9

1116.6k](/packages/pantheon-systems-site-audit-tool)[bolt/bolt-extension-starter

103.3k](/packages/bolt-bolt-extension-starter)

PHPackages © 2026

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