Loads .env-Files
.env-File
STORAGE_HOST=localhost
STORAGE_NAME=projection
STORAGE_USER=emmett
STORAGE_PASSWORD=fluxcapacitor
loadAndPrint.php
<?php
require_once __DIR__ . '/../vendor/autoload.php';
FluxEco\DotEnv\Api::new()->load(__DIR__);
echo getenv('STORAGE_USER').PHP_EOL;
echo getenv('STORAGE_PASSWORD').PHP_EOL;
output
emmett
fluxcapacitor
<?php
require_once __DIR__ . '/../vendor/autoload.php';
fluxDotEnv\loadDotEnv(__DIR__);
echo getenv('STORAGE_USER').PHP_EOL;
echo getenv('STORAGE_PASSWORD').PHP_EOL;
Please ...
- ... register an account at https://git.fluxlabs.ch
- ... create pull requests 🔥
Please ...
- ... register an account at https://git.fluxlabs.ch
- ... ask us for a Service Level Agreement: support@fluxlabs.ch 😘
- ... read and create issues