File tree Expand file tree Collapse file tree 2 files changed +17
-35
lines changed Expand file tree Collapse file tree 2 files changed +17
-35
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ DATABASE_PASSWORD=root
99MODULE_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
4545Ideal 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" ```
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments