PHP code example of geerthauwaerts / now-env
1. Go to this page and download the library: Download geerthauwaerts/now-env 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/ */
geerthauwaerts / now-env example snippets
use NowEnv\NowEnv;
$nowenv = new NowEnv(__DIR__);
$nowenv->load();
use NowEnv\NowEnv;
$nowenv = new NowEnv(__DIR__, 'now-secrets.json');
$nowenv->load();
$example = getenv('EXAMPLE');
$example = $_ENV['EXAMPLE'];
$example = $_SERVER['EXAMPLE'];
use NowEnv\NowEnv;
$nowenv = new NowEnv(__DIR__);
$nowenv->overload();
$nowenv->
$nowenv->
$nowenv->
$nowenv->
$nowenv->
$nowenv->