Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 473 Bytes

File metadata and controls

24 lines (15 loc) · 473 Bytes

marko/env

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