marko/env

Environment variable loading for Marko applications

Maintainers

Package info

github.com/marko-php/marko-env

pkg:composer/marko/env

Statistics

Installs: 9

Dependents: 1

Suggesters: 0

Stars: 0

0.0.1 2026-03-25 17:53 UTC

This package is auto-updated.

Last update: 2026-03-25 21:07:20 UTC


README

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

Installation

composer require marko/env

Quick Example

use Marko\Env\EnvLoader;

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

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

Documentation

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