simplydi/dotenv

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

Maintainers

Package info

github.com/bharatkumar200/SimplyDotEnv

pkg:composer/simplydi/dotenv

Statistics

Installs: 17

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 1

1.0 2023-08-05 02:20 UTC

This package is auto-updated.

Last update: 2026-03-05 07:57:47 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')