File tree 2 files changed +17
-35
lines changed
2 files changed +17
-35
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ DATABASE_PASSWORD=root
9
9
MODULE_ENABLED=true
10
10
```
11
11
12
- ** Load the variables**
12
+ ## Load the variables
13
13
14
14
``` php
15
15
<?php
@@ -20,7 +20,7 @@ $absolutePathToEnvFile = __DIR__ . '/.env';
20
20
(new DotEnv($absolutePathToEnvFile))->load();
21
21
```
22
22
23
- ** Use them!**
23
+ # Use them!
24
24
``` php
25
25
/**
26
26
* string(33) "mysql:host=localhost;dbname=test;"
@@ -44,4 +44,18 @@ var_dump(getenv('MODULE_ENABLED'));
44
44
45
45
Ideal for small project
46
46
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" ```
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments