marko / env
Environment variable loading for Marko applications
0.11.0
2026-10-06 10:29 UTC
Requires
- php: ^8.5
Requires (Dev)
- pestphp/pest: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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