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

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

parmonov98/dotenv
=================

A package to work with .env(name) files.

218PHP

Since Aug 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/parmonov98/dotenv)[ Packagist](https://packagist.org/packages/parmonov98/dotenv)[ RSS](/packages/parmonov98-dotenv/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

DotEnv class
============

[](#dotenv-class)

steps
-----

[](#steps)

```
-composer require parmonov98/dotenv:dev-main
-include or require composer autoloader into your project
-import class using "use Parmonov98\DotEnv"
-Create a new object and use it as you want.

```

examples

```
require_once "dotenv.php";
$env = new DotEnv(); // you can pass a custom name instead .env
$env->get("BOT_NAME");
$env->set("BOT_NAME", "new name");
// saving into new file or .env
$env->save("new-file");
//refresh params from file content
$env->refresh();
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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/4a21307d57a4280072a76f85e66adbcff5586fc2f1708afbfc9bfe7dde661087?d=identicon)[parmonov98](/maintainers/parmonov98)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[barryvdh/reflection-docblock

1.3k118.6M40](/packages/barryvdh-reflection-docblock)[outlandish/oowp

A plugin for WordPress that makes post types easier to manage

415.4k](/packages/outlandish-oowp)[moell/rss

moell/rss is a package that follows the RSS 2.0 standard

111.8k1](/packages/moell-rss)

PHPackages © 2026

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