PHPackages                             mmqfilho/simple-dot-env - 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. mmqfilho/simple-dot-env

ActiveLibrary

mmqfilho/simple-dot-env
=======================

Get .env file and put variables in $\_ENV

1.0.7(8y ago)026GPLv2PHPPHP &gt;=5.3.0

Since Mar 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mmqfilho/simpleDotEnv)[ Packagist](https://packagist.org/packages/mmqfilho/simple-dot-env)[ Docs](https://github.com/mmqfilho/simpleDotEnv)[ RSS](/packages/mmqfilho-simple-dot-env/feed)WikiDiscussions master Synced 1mo ago

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

Simple Dot Env
==============

[](#simple-dot-env)

version: `1.0`

date: `2016/03/02`

Author: `Marcos Menezes `

How to use
----------

[](#how-to-use)

include the file and set the namespace

```
include_once 'src/Simpledotenv.php';
or use autoload composer
include_once YOUR_VENDOR_DIR . '/autoload.php' ;

use Mmqfilho\SimpleDotEnv\SimpleDotEnv as Env;

```

Create object

```
new Env('PATH/TO/.ENV_FILE');

```

Only path, do not put filename.

Create and/or edit .env file

```
VAR_NAME1=VALUE_1
VAR_NAME2=VALUE_2
VAR_NAME3=VALUE_3

```

Get the env variable

```
$var1 = $_ENV['VAR_NAME1'];

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~0 days

Total

7

Last Release

3120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c42dfe3ae4731d2a59d03f8286aade3209fc6744567b9b5fb7c9813d48f232f?d=identicon)[mmqfilho](/maintainers/mmqfilho)

---

Tags

environmentenv

### Embed Badge

![Health badge](/badges/mmqfilho-simple-dot-env/health.svg)

```
[![Health](https://phpackages.com/badges/mmqfilho-simple-dot-env/health.svg)](https://phpackages.com/packages/mmqfilho-simple-dot-env)
```

###  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.2k](/packages/symfony-dotenv)[jbzoo/utils

Collection of PHP functions, mini classes and snippets for everyday developer's routine life.

8321.5M36](/packages/jbzoo-utils)[imliam/laravel-env-set-command

Set a .env file variable from the command line

118352.4k10](/packages/imliam-laravel-env-set-command)[msztorc/laravel-env

Laravel env helper commands

7855.4k](/packages/msztorc-laravel-env)[cekurte/environment

A library to get the values from environment variables and process to php data types

5884.0k7](/packages/cekurte-environment)

PHPackages © 2026

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