|
static | save (array $content,?string $path=null, string $filename='.env') |
| Saves a content array on disk.
|
|
static | saveText (string $textContent,?string $path=null, string $filename='.env') |
| Savec a content text on disk.
|
|
static | addAndSave (array $content,?string $path=null, string $filename='.env') |
| Adds a content array to an existing env file and saves it to disk.
|
|
static | load (?string $path=null, string $filename='.env') |
| Loads an env file an returns an array of key/value pairs.
|
|
static | loadContent (?string $path=null, string $filename='.env') |
|
Definition at line 15 of file EnvFile.php.
◆ addAndSave()
static addAndSave |
( |
array |
$content, |
|
|
?string |
$path = null , |
|
|
string |
$filename = '.env' |
|
) |
| |
|
static |
Adds a content array to an existing env file and saves it to disk.
- Parameters
-
array | $content | |
string | null | $path | |
string | $filename | |
- Returns
- false|int
Definition at line 73 of file EnvFile.php.
◆ load()
static load |
( |
?string |
$path = null , |
|
|
string |
$filename = '.env' |
|
) |
| |
|
static |
Loads an env file an returns an array of key/value pairs.
- Parameters
-
string | null | $path | |
string | $filename | |
- Returns
- array
Definition at line 87 of file EnvFile.php.
◆ loadContent()
static loadContent |
( |
?string |
$path = null , |
|
|
string |
$filename = '.env' |
|
) |
| |
|
static |
◆ parseValue()
- Parameters
-
- Returns
- int|string
Definition at line 23 of file EnvFile.php.
◆ save()
static save |
( |
array |
$content, |
|
|
?string |
$path = null , |
|
|
string |
$filename = '.env' |
|
) |
| |
|
static |
Saves a content array on disk.
- Parameters
-
array | $content | |
string | null | $path | |
string | $filename | |
- Returns
- false|int
Definition at line 42 of file EnvFile.php.
◆ saveText()
static saveText |
( |
string |
$textContent, |
|
|
?string |
$path = null , |
|
|
string |
$filename = '.env' |
|
) |
| |
|
static |
Savec a content text on disk.
- Parameters
-
string | $textContent | |
string | null | $path | |
string | $filename | |
- Returns
- false|int
Definition at line 60 of file EnvFile.php.
◆ $ENV_ROOT
string $ENV_ROOT =\ROOT.'../' |
|
static |
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity-dev/src/Ubiquity/config/EnvFile.php