PHPackages                             lorran-code/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. lorran-code/dot-env

ActiveLibrary

lorran-code/dot-env
===================

v1.0.0(3y ago)07GPL-3.0-or-laterPHPPHP &gt;=7.0

Since Dec 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/devLorran/dot-env-lorran)[ Packagist](https://packagist.org/packages/lorran-code/dot-env)[ RSS](/packages/lorran-code-dot-env/feed)WikiDiscussions master Synced 1mo ago

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

**\# 1 - VARIÁVEIS PARA CONFIGURAR A CONEXÃO COM O BANCO DE DADOS NO ARQUIVO .env QUE FICA NA RAIZ DO PROEJTO #**DB\_HOST=localhost DB\_USER=root DB\_PASS=pass DB\_NAME=database DB\_PORT=3306 **\# 2 - CARREGA O ENVIRONMENT #**&lt;?php

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

//LOAD ENVIRONMENT VARS FROM FILE ON ROOT
LorranCode\DotEnv\Environment::load(__DIR__);

//GET ENVIRONMENT VAR
echo getenv('DB_HOST');

```

###  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

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1258d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/981893fa684861b21bf44d638684e793c3128dd8f7798ab7ab0f72870d3a9bee?d=identicon)[LorranCode](/maintainers/LorranCode)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/lorran-code-dot-env/health.svg)

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

PHPackages © 2026

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