PHP code example of osn / envoy
1. Go to this page and download the library: Download osn/envoy library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
osn / envoy example snippets
...
e OSN\Envoy\Envoy;
$envoy = new Envoy();
try {
$envoy->load();
print_r($_ENV);
}
catch(\OSN\Envoy\EntityParseErrorException $e){
echo "Error while parsing the file: " . $e->getMessage();
}
[
\OSN\Envoy\Envoy::CONFIG_OPTION_HERE => "value",
\OSN\Envoy\Envoy::CONFIG_OPTION_2 => true,
]