Skip to content

Commit 8305ce9

Browse files
committed
Remove unused file and readme refactor
1 parent b03ddf8 commit 8305ce9

File tree

2 files changed

+17
-35
lines changed

2 files changed

+17
-35
lines changed

README.md

+17-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ DATABASE_PASSWORD=root
99
MODULE_ENABLED=true
1010
```
1111

12-
**Load the variables**
12+
## Load the variables
1313

1414
```php
1515
<?php
@@ -20,7 +20,7 @@ $absolutePathToEnvFile = __DIR__ . '/.env';
2020
(new DotEnv($absolutePathToEnvFile))->load();
2121
```
2222

23-
**Use them!**
23+
# Use them!
2424
```php
2525
/**
2626
* string(33) "mysql:host=localhost;dbname=test;"
@@ -44,4 +44,18 @@ var_dump(getenv('MODULE_ENABLED'));
4444

4545
Ideal for small project
4646

47-
Simple and easy!
47+
Simple and easy!
48+
49+
# Processors
50+
51+
Also the variables are parsed according to the configuration passed as parameter to the constructor. The available processors are:
52+
53+
## BooleanProcessor
54+
55+
``VARIABLE=false`` will be processed to ```bool(false)```
56+
57+
NOTE: ``VARIABLE="true"`` will be processed to ```string(4) "true"```
58+
59+
## QuotedProcessor
60+
61+
``VARIABLE="anything"`` will be processed to ```string(8) "anything"```

src/Option.php

-32
This file was deleted.

0 commit comments

Comments
 (0)