PHP code example of qlimix / environment

1. Go to this page and download the library: Download qlimix/environment 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/ */

    

qlimix / environment example snippets




use Qlimix\Environment\Environment;

$env = Environment::createDevelopment();



use Qlimix\Environment\Value\Loader;

$env = new Loader();
$string = $env->getString('value');
$integer = $env->getInt('value');
$float = $env->getFloat('value');
$bool = $env->getBoolean('value');
$array = $env->getArray('value', ',');
$mapped = $env->getMapped('value', function (string $value) {
    return base64_decode($value);
});