From df23a7a1b1047a2b26511394cb51b289a13bcc98 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 8 Jun 2022 15:37:10 +0900 Subject: [PATCH] Update documentation --- Readme.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 1c80ca8..3dac56c 100644 --- a/Readme.md +++ b/Readme.md @@ -9,7 +9,19 @@ repository. The `.env` should *NEVER* be checked into anything ## How to install -`comoser require gullevek/dotEnv` +`composer require gullevek/dotEnv` + +## Run it + +Create a `.env` file in the current folder. +Create a file like below + +```php +require '../vendor/autoload.php'; +gullevek\dotEnv\DotEnv::readEnvFile(__DIR__); +``` + +All data will be in the `$_ENV` array ## How it works