Skip to content

Just another dotenv library for PHP ripped-off from CodeIgniter 4.

License

Notifications You must be signed in to change notification settings

namankumar80510/DikkiDotEnv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dikki DotEnv - Just Another DotEnv Component for PHP

This DotEnv component was ripped off from CodeIgniter 4 and created as a standalone component. It is a simple class that loads a .env file in the project root and sets the environment variables from it.

Usage

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

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

About

Just another dotenv library for PHP ripped-off from CodeIgniter 4.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages