Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| df23a7a1b1 | |||
| 652c3554f8 | |||
| 2c592f0289 | |||
| 6ee4358579 | |||
| 135d3d2dd4 | |||
| c0f1d9daf7 | |||
| 1f3ec93fb9 | |||
| 2c7931b7a5 | |||
| 914b6c1da8 | |||
| 69a386d00f |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.phpunit.result.cache
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace tests;
|
|||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for ACL\Login
|
* Test class for DotEnv
|
||||||
* @coversDefaultClass \gullevek\DotEnv
|
* @coversDefaultClass \gullevek\DotEnv
|
||||||
* @testdox \gullevek\DotEnv method tests
|
* @testdox \gullevek\DotEnv method tests
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user