marko / env
Environment variable loading for Marko applications
0.0.1
2026-03-25 17:53 UTC
Requires
- php: ^8.5
Requires (Dev)
- pestphp/pest: ^4.0
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