PHPackages                             rackem/dotenv - 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. rackem/dotenv

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

rackem/dotenv
=============

Environment variables in your Rack'em application via .env

v0.1(12y ago)021MITPHP

Since Jan 21Pushed 12y ago1 watchersCompare

[ Source](https://github.com/ripeworks/rackem-dotenv)[ Packagist](https://packagist.org/packages/rackem/dotenv)[ Docs](https://github.com/ripeworks/rackem-dotenv)[ RSS](/packages/rackem-dotenv/feed)WikiDiscussions master Synced 3d ago

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

.env for your Rack'em application
=================================

[](#env-for-your-rackem-application)

A simple middleware that will load environment variables from `.env` into `$env`.

It's just like [this thing](https://github.com/bkeepers/dotenv).

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

[](#installation)

```
$ composer require rackem/dotenv:@stable
```

Usage
-----

[](#usage)

```
\Rackem::use_middleware("\Rackem\Dotenv");
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

4497d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

envdotenvrackem

### Embed Badge

![Health badge](/badges/rackem-dotenv/health.svg)

```
[![Health](https://phpackages.com/badges/rackem-dotenv/health.svg)](https://phpackages.com/packages/rackem-dotenv)
```

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[symfony/dotenv

Registers environment variables from a .env file

3.8k226.7M2.3k](/packages/symfony-dotenv)[helhum/dotenv-connector

Makes it possible to set environment variables for composer projects.

1594.6M34](/packages/helhum-dotenv-connector)[m1/env

Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env files with PHP.

6412.0M21](/packages/m1-env)[sroze/companienv

Companion for .env files

245418.8k1](/packages/sroze-companienv)[bnomei/kirby3-dotenv

Kirby Plugin for environment variables from .env

4144.1k1](/packages/bnomei-kirby3-dotenv)

PHPackages © 2026

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