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

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

lionrajkumar/dotenv
===================

.env parser plugin for Core-PHP applications

1.0(4y ago)06MITPHPPHP &gt;=5.6

Since Apr 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lionrajkumar/dotEnv)[ Packagist](https://packagist.org/packages/lionrajkumar/dotenv)[ Docs](http://lionrajkumar.com)[ RSS](/packages/lionrajkumar-dotenv/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

dotEnv
======

[](#dotenv)

[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/e34ad24599d9b6ab4a45f60f1ef7a0c613f64d4a842f1d4917aabab8e7057b9b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696f6e72616a6b756d61722f646f74656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lionrajkumar/dotenv)[![Total Downloads](https://camo.githubusercontent.com/9bf9248d9e6e29189c4ea612b942892602dcf2fcdf92eed2add8990fb2967042/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696f6e72616a6b756d61722f646f74656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lionrajkumar/dotenv)

.env parser plugin for Core-PHP applications

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

[](#installation)

Require this package with composer:

```
composer require lionrajkumar/dotenv
```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

$env = new \lionrajkumar\DotEnv(__DIR__ . "/.env");
$env->load();
```

Quick Examples
--------------

[](#quick-examples)

Please refer to our extensive [Wiki documentation](https://github.com/lionrajkumar/dotEnv/wiki) for more information.

Support
-------

[](#support)

For answers, you may not find in the Wiki, avoid posting issues. Feel free to ask for support on lionrajkumar.com

License
-------

[](#license)

This package is licensed under the [MIT License](https://github.com/lionrajkumar/dotEnv/blob/main/LICENSE).

[Ref](https://www.w3resource.com/php/composer/create-publish-and-use-your-first-composer-package.php)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

1496d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3369456d0d062c2d789b41ff168fc481096e4c1b0b4f849bfb343c7b18e273e1?d=identicon)[lionrajkumar](/maintainers/lionrajkumar)

---

Top Contributors

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

---

Tags

libraryenvcomposer-plugin.env parser

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/lionrajkumar-dotenv/health.svg)](https://phpackages.com/packages/lionrajkumar-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)[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

296.6M2](/packages/dekor-php-array-table)

PHPackages © 2026

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