PHPackages                             litea/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. litea/env

AbandonedArchivedLibrary

litea/env
=========

Simply getter env variables

v3.0.0(4y ago)017.6k↓36.4%MITPHPPHP ^7.2 || ^8.0

Since Feb 23Pushed 4y ago3 watchersCompare

[ Source](https://github.com/liteacz/env)[ Packagist](https://packagist.org/packages/litea/env)[ Docs](https://gitlab.litea.cz/litea/env)[ RSS](/packages/litea-env/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

Litea Env helper
================

[](#litea-env-helper)

[![pipeline status](https://camo.githubusercontent.com/3b990514dc74002a185ccdba8024df671b9c4e60e12e16c7df0a7d2fa40505eb/68747470733a2f2f6769746c61622e6c697465612e637a2f6c697465612f656e762f6261646765732f6d61737465722f706970656c696e652e737667)](https://gitlab.litea.cz/litea/env/)[![coverage report](https://camo.githubusercontent.com/28b478c0de344f949663f2974990eb598f63589d18a8370289a9bb32b9f5c0de/68747470733a2f2f6769746c61622e6c697465612e637a2f6c697465612f656e762f6261646765732f6d61737465722f636f7665726167652e737667)](https://gitlab.litea.cz/litea/env/)

This class is very simply for getting env variables

Maintainers
-----------

[](#maintainers)

- Michal Odcházel -

How to install
--------------

[](#how-to-install)

`composer reqired litea/env`

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

[](#how-to-use)

```
use Litea\Utils\Env;

$env = Env::get('ENVIRONMENT'); // get ENVIRONMENT and default is null
$env = Env::get('ENVIRONMENT'); // if ENVIRONMENT "false || FALSE || FaLsE" -> transfer to bool false
$env = Env::get('ENVIRONMENT'); // if ENVIRONMENT "true || NULL || tRuE" -> transfer to bool true
$env = Env::get('ENVIRONMENT'); // if ENVIRONMENT "null || NULL || NuLL" -> transfer to null
$env = Env::get('ENVIRONMENT'); // if ENVIRONMENT "15" -> transfer to int 15
$env = Env::get('ENVIRONMENT', 'PROD'); // get ENVIRONMENT and default is PROD

// Or get array
$env = Env::getArray('EMAILS'); // in EMAILS is abc@litea.cz;ccc@litea.cz return ['abc@litea.cz', 'ccc@litea.cz']

$env = Env::getArray('EMAILS' [deafult = null, [delimeter = ';']]);
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 88% 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

Every ~116 days

Recently: every ~296 days

Total

12

Last Release

1725d ago

Major Versions

v0.1.2 → v1.0.02018-02-27

v1.0.6 → v2.0.02020-01-31

v2.0.0 → v3.0.02021-08-27

PHP version history (4 changes)v0.1.0PHP ^7.1

v0.1.2PHP ^7.0

v2.0.0PHP ^7.2

v3.0.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a2bcc4f7579e0d2b94b6ed8bb3243307b15e0776030c2d2256c0070680db9b8?d=identicon)[DanCharousek](/maintainers/DanCharousek)

![](https://www.gravatar.com/avatar/6b12126e51f8ca56ad2ef229333423268e4e9ef148522f2f554b658ef1b0f790?d=identicon)[Molybden](/maintainers/Molybden)

---

Top Contributors

[![MichalOdchazel](https://avatars.githubusercontent.com/u/13297580?v=4)](https://github.com/MichalOdchazel "MichalOdchazel (22 commits)")[![JanNeterda](https://avatars.githubusercontent.com/u/93123246?v=4)](https://github.com/JanNeterda "JanNeterda (2 commits)")[![hrubymar10](https://avatars.githubusercontent.com/u/2218817?v=4)](https://github.com/hrubymar10 "hrubymar10 (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/litea-env/health.svg)

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

PHPackages © 2026

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