PHPackages                             marko/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. marko/env

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

marko/env
=========

Environment variable loading for Marko applications

0.7.0(1mo ago)0596—4.5%7MITPHPPHP ^8.5

Since Mar 25Pushed 2w agoCompare

[ Source](https://github.com/marko-php/marko-env)[ Packagist](https://packagist.org/packages/marko/env)[ RSS](/packages/marko-env/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependencies (4)Versions (18)Used By (7)

marko/env
=========

[](#markoenv)

Environment variable loading — reads `.env` files and provides the `env()` helper with automatic type coercion.

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

[](#installation)

```
composer require marko/env
```

Quick Example
-------------

[](#quick-example)

```
use Marko\Env\EnvLoader;

$envLoader = new EnvLoader();
$envLoader->load(__DIR__);

$debug = env('APP_DEBUG'); // 'true' -> true, 'false' -> false
```

Documentation
-------------

[](#documentation)

Full usage, API reference, and examples: [marko/env](https://marko.build/docs/packages/env/)

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance93

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity50

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

Every ~3 days

Recently: every ~9 days

Total

16

Last Release

53d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

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

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[bitwasp/buffertools

Toolbox for working with binary and hex data. Similar to NodeJS Buffer.

64774.5k42](/packages/bitwasp-buffertools)[winter/storm

Winter CMS Storm Library

46251.0k6](/packages/winter-storm)[smile/module-map

Smile Map Utilities Module

10548.8k2](/packages/smile-module-map)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17178.1k1](/packages/murdercode-nova4-tinymce-editor)

PHPackages © 2026

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