simplydi/dotenv

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

Installs: 17

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/simplydi/dotenv

1.0 2023-08-05 02:20 UTC

This package is auto-updated.

Last update: 2025-10-05 07:07:34 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')