Readme file update
This commit is contained in:
14
Readme.md
14
Readme.md
@@ -9,7 +9,19 @@ repository. The `.env` should *NEVER* be checked into anything
|
|||||||
|
|
||||||
## How to install
|
## 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
|
## How it works
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user