Search by

marko / env

markshust

Environment variable loading for Marko applications

0.11.0 2026-10-06 10:29 UTC

README

Environment variable loading — reads a .env file into $_ENV at boot so config files can read it with Marko\Config\Env.

Installation

composer require marko/env

Quick Example

use Marko\Env\EnvLoader;

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

The global env() helper was removed in Marko 0.9.0; read values with Marko\Config\Env instead.

Documentation

Full usage, API reference, and examples: marko/env