PHP code example of frdl / environment
1. Go to this page and download the library: Download frdl/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/ */
frdl / environment example snippets
$environment = new Frdlweb\Environment\Environment;
$environment->path('/')
->detectEnvironment([
'local' =>[
'
$environment = new Frdlweb\Environment\Environment;
$environment->dir('/home/')
->detectEnvironment([
'local' =>[
'
return [
'secret-password' => 'secret-password-value'
];
$secret = getenv('secret-password');