PHPackages                             cibulka/phpnotenv - 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. cibulka/phpnotenv

AbandonedArchivedLibrary

cibulka/phpnotenv
=================

Fork of lucasv/phpdotenv enabling custom way of setting environment variables.

078PHP

Since Aug 30Pushed 10y ago1 watchersCompare

[ Source](https://github.com/cibulka/phpnotenv)[ Packagist](https://packagist.org/packages/cibulka/phpnotenv)[ RSS](/packages/cibulka-phpnotenv/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Why?
====

[](#why)

According to creator of awesome [Phpdotenv](https://github.com/vlucas/phpdotenv), the library was never meant to be used in production. I, however, would like to that to maintain the separation of config from code and to keep my development workflow as close to production as possible.

A lot of shared hostings (including mine) does not allow `putenv` function due to security, so I had to have my way of getting/setting superglobals with Phpdotenv. But as most of that is hardcoded to Phpdotenv, the easiest way I could think of was to write a light wrapper around the methods in question to allow custom callbacks.

Consider this library deprecated anytime the owner of Phpdotenv incorporates similar functionality.

What is this used for?
----------------------

[](#what-is-this-used-for)

More info about Phpdotenv at the original repo: [Phpdotenv](https://github.com/vlucas/phpdotenv)

Installation
============

[](#installation)

```
composer install cibulka/phpnotenv

```

Commit test.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/cibulka-phpnotenv/health.svg)

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

PHPackages © 2026

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