Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 322 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 322 Bytes

Dikki DotEnv - Just Another DotEnv Component for PHP

A simple dotenv component for PHP.

Usage

$dotenv = new Dikki\DotEnv\DotEnv(__DIR__, '.env'); // directory where .env is present; second argument is optional
$dotenv->load(); // load the vars from .env file

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