simplydi/dotenv

A simple DotEnv component for working with environment variabls in .env file (decoupled from CI4)

1.0 2023-08-05 02:20 UTC

This package is auto-updated.

Last update: 2024-05-05 04:01:01 UTC


README

A simple DotEnv component for working with environment variabls in .env file (decoupled from CI4)

Usage

$dotenv = new SimplyDi\Dotenv(__DIR__); // directory where .env is present
$dotenv->load(); // load the vars from .env file

echo $_ENV['DEBUG']; // or getenv('DEBUG')